improved foolslide-based extractors
- this includes dokireader, fallenangels, jaiminisbox, powermanga, sensescans, worldthree, yonkouprod, gomanga, yomanga - added 'chapter_string', 'chapter_id', 'chapter_minor' and 'count' keywords - changed the 'chapter' keyword to always be just a number - changed the default directory format
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
# Copyright 2016, 2017 Mike Fährmann
|
||||
# Copyright 2016-2017 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
|
||||
@@ -8,19 +8,14 @@
|
||||
|
||||
"""Extract manga-chapters from https://yonkouprod.com/"""
|
||||
|
||||
from .foolslide import FoolslideChapterExtractor
|
||||
from . import foolslide
|
||||
|
||||
|
||||
class YonkouprodChapterExtractor(FoolslideChapterExtractor):
|
||||
class YonkouprodChapterExtractor(foolslide.FoolslideChapterExtractor):
|
||||
"""Extractor for manga-chapters from yonkouprod.com"""
|
||||
category = "yonkouprod"
|
||||
pattern = [(r"(?:https?://)?(?:www\.)?(yonkouprod\.com/reader/read/"
|
||||
r"[^/]+/([a-z]{2})/\d+/\d+)")]
|
||||
pattern = foolslide.chapter_pattern(r"(?:www\.)?yonkouprod\.com/reader")
|
||||
test = [("http://yonkouprod.com/reader/read/fairy-tail/en/0/512/", {
|
||||
"url": "7647850e2b1ad11c2baa9628755bf7f186350a0b",
|
||||
"keyword": "d079c718d6620478fa72a700fdd027f9a0f0760b",
|
||||
})]
|
||||
|
||||
def __init__(self, match):
|
||||
url = "https://" + match.group(1)
|
||||
FoolslideChapterExtractor.__init__(self, url, match.group(2))
|
||||
|
||||
Reference in New Issue
Block a user