1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-26 04:32:51 +01:00

[dokireader] use foolslide base class

This commit is contained in:
Mike Fährmann 2016-10-24 15:04:30 +02:00
parent f4c2461ba7
commit 5374f12bd0
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -8,18 +8,17 @@
"""Extract manga-chapters from https://kobato.hologfx.com/"""
from .powermanga import PowermangaChapterExtractor
from .foolslide import FoolslideChapterExtractor
class DokireaderChapterExtractor(PowermangaChapterExtractor):
class DokireaderChapterExtractor(FoolslideChapterExtractor):
"""Extractor for manga-chapters from kobato.hologfx.com"""
category = "dokireader"
subcategory = "chapter"
pattern = [(r"(?:https?://)?kobato\.hologfx\.com/reader/read/"
r"(.+/([a-z]{2})/\d+/\d+)")]
pattern = [(r"(?:https?://)?(kobato\.hologfx\.com/reader/read/"
r"[^/]+/([a-z]{2})/\d+/\d+)")]
test = [("https://kobato.hologfx.com/reader/read/hitoribocchi_no_oo_seikatsu/en/3/34", {
"keyword": "303f3660772dd393ce01cf248f5cf376629aebc7",
})]
def __init__(self, match):
PowermangaChapterExtractor.__init__(self, match)
self.url_base = "https://kobato.hologfx.com/reader/read/"
url = "https://" + match.group(1)
FoolslideChapterExtractor.__init__(self, url, match.group(2))