update build_supportedsites.py
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2016-2018 Mike Fährmann
|
||||
# Copyright 2016-2019 Mike Fährmann
|
||||
#
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License version 2 as
|
||||
@@ -148,7 +148,7 @@ class ImagetwistImageExtractor(ImagehostImageExtractor):
|
||||
"""Extractor for single images from imagetwist.com"""
|
||||
category = "imagetwist"
|
||||
pattern = [r"(?:https?://)?((?:www\.)?imagetwist\.com/([a-z0-9]{12}))"]
|
||||
test = [("http://imagetwist.com/4e46hv31tu0q/test.jpg", {
|
||||
test = [("https://imagetwist.com/4e46hv31tu0q/test.jpg", {
|
||||
"url": "c999dc1a5dec0525ac9eb8c092f173dfe6dba0b0",
|
||||
"keyword": "30dd34dcb06b5b51c6cfff199c610b24edb7b9bc",
|
||||
"content": "96b1fd099b06faad5879fce23a7e4eb8290d8810",
|
||||
|
||||
@@ -202,13 +202,13 @@ class JoyreactorTagExtractor(ReactorTagExtractor):
|
||||
category = "joyreactor"
|
||||
pattern = [JR_BASE_PATTERN + r"/tag/([^/?&#]+)"]
|
||||
test = [
|
||||
("http://joyreactor.cc/tag/Advent+Cirno", {
|
||||
"count": ">= 17",
|
||||
}),
|
||||
("http://joyreactor.com/tag/Cirno", {
|
||||
"url": "a81382a3146da50b647c475f87427a6ca1d737df",
|
||||
"keyword": "dcd3b101cae0a93fbb91281235de1410faf88455",
|
||||
}),
|
||||
("http://joyreactor.cc/tag/Advent+Cirno", {
|
||||
"count": ">= 17",
|
||||
}),
|
||||
]
|
||||
|
||||
|
||||
@@ -217,13 +217,13 @@ class JoyreactorSearchExtractor(ReactorSearchExtractor):
|
||||
category = "joyreactor"
|
||||
pattern = [JR_BASE_PATTERN + r"/search(?:/|\?q=)([^/?&#]+)"]
|
||||
test = [
|
||||
("http://joyreactor.com/search?q=Cirno+Gifs", {
|
||||
"count": 0, # no search results on joyreactor.com
|
||||
}),
|
||||
("http://joyreactor.cc/search/Cirno+Gifs", {
|
||||
"range": "1-25",
|
||||
"count": ">= 20",
|
||||
}),
|
||||
("http://joyreactor.com/search?q=Cirno+Gifs", {
|
||||
"count": 0, # no search results on joyreactor.com
|
||||
}),
|
||||
]
|
||||
|
||||
|
||||
@@ -232,11 +232,11 @@ class JoyreactorUserExtractor(ReactorUserExtractor):
|
||||
category = "joyreactor"
|
||||
pattern = [JR_BASE_PATTERN + r"/user/([^/?&#]+)"]
|
||||
test = [
|
||||
("http://joyreactor.cc/user/hemantic", None),
|
||||
("http://joyreactor.com/user/Tacoman123", {
|
||||
"url": "0444158f17c22f08515ad4e7abf69ad2f3a63b35",
|
||||
"keyword": "1571a81fa5b8bab81528c93065d2460a72e77102",
|
||||
}),
|
||||
("http://joyreactor.cc/user/hemantic", None),
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user