add a few tests
This commit is contained in:
@@ -6,15 +6,19 @@
|
|||||||
# it under the terms of the GNU General Public License version 2 as
|
# it under the terms of the GNU General Public License version 2 as
|
||||||
# published by the Free Software Foundation.
|
# published by the Free Software Foundation.
|
||||||
|
|
||||||
"""Extract manga-chapters from https://kobato.hologfx.com/"""
|
"""Extract manga-chapters from http://reader.sensescans.com/"""
|
||||||
|
|
||||||
from .foolslide import FoolslideChapterExtractor
|
from .foolslide import FoolslideChapterExtractor
|
||||||
|
|
||||||
class SensescansChapterExtractor(FoolslideChapterExtractor):
|
class SensescansChapterExtractor(FoolslideChapterExtractor):
|
||||||
"""Extractor for manga-chapters from kobato.hologfx.com"""
|
"""Extractor for manga-chapters from reader.sensescans.com"""
|
||||||
category = "sensescans"
|
category = "sensescans"
|
||||||
pattern = [(r"(?:https?://)?(reader\.sensescans\.com/read/"
|
pattern = [(r"(?:https?://)?(reader\.sensescans\.com/read/"
|
||||||
r"[^/]+/([a-z]{2})/\d+/\d+)")]
|
r"[^/]+/([a-z]{2})/\d+/\d+)")]
|
||||||
|
test = [("http://reader.sensescans.com/read/magi__labyrinth_of_magic/en/33/319/page/1", {
|
||||||
|
"url": "fff6186aca61017aeb5c743cdfccac4b9b1f2557",
|
||||||
|
"keyword": "77f906f04bf49d3bd636e8c92d85dc25aa361754",
|
||||||
|
})]
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
url = "http://" + match.group(1)
|
url = "http://" + match.group(1)
|
||||||
|
|||||||
@@ -15,6 +15,10 @@ class WorldthreeChapterExtractor(FoolslideChapterExtractor):
|
|||||||
category = "worldthree"
|
category = "worldthree"
|
||||||
pattern = [(r"(?:https?://)?(?:www\.)?(slide\.world-three\.org/read/"
|
pattern = [(r"(?:https?://)?(?:www\.)?(slide\.world-three\.org/read/"
|
||||||
r"[^/]+/([a-z]{2})/\d+/\d+)")]
|
r"[^/]+/([a-z]{2})/\d+/\d+)")]
|
||||||
|
test = [("http://www.slide.world-three.org/read/black_bullet/en/2/7/page/1", {
|
||||||
|
"url": "be2f04f6e2d311b35188094cfd3e768583271584",
|
||||||
|
"keyword": "6d77d9fc806d76d881491a52ccd8dfd875c47d05",
|
||||||
|
})]
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
url = "http://" + match.group(1)
|
url = "http://" + match.group(1)
|
||||||
|
|||||||
Reference in New Issue
Block a user