mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-26 04:32:51 +01:00
add '_extractor' info to manga extractor results
This commit is contained in:
parent
89ee8cd7e4
commit
32edf4fc7b
@ -253,6 +253,7 @@ class MangaExtractor(Extractor):
|
||||
|
||||
subcategory = "manga"
|
||||
categorytransfer = True
|
||||
chapterclass = None
|
||||
reverse = True
|
||||
root = ""
|
||||
|
||||
@ -273,6 +274,7 @@ class MangaExtractor(Extractor):
|
||||
|
||||
yield Message.Version, 1
|
||||
for chapter, data in chapters:
|
||||
data["_extractor"] = self.chapterclass
|
||||
yield Message.Queue, chapter, data
|
||||
|
||||
def login(self):
|
||||
|
@ -63,6 +63,7 @@ class FallenangelsChapterExtractor(ChapterExtractor):
|
||||
|
||||
class FallenangelsMangaExtractor(MangaExtractor):
|
||||
"""Extractor for manga from fascans.com"""
|
||||
chapterclass = FallenangelsChapterExtractor
|
||||
category = "fallenangels"
|
||||
pattern = r"(?:https?://)?((manga|truyen)\.fascans\.com/manga/[^/]+)/?$"
|
||||
test = (
|
||||
|
@ -158,6 +158,7 @@ def generate_extractors():
|
||||
MaExtr.pattern = r"(?:https?://)?" + pattern + r"(/series/[^/?&#]+)"
|
||||
MaExtr.test = info.get("test-manga")
|
||||
MaExtr.root = root
|
||||
MaExtr.chapterclass = ChExtr
|
||||
symtable[MaExtr.__name__] = MaExtr
|
||||
|
||||
|
||||
|
@ -74,8 +74,9 @@ class HbrowseChapterExtractor(HbrowseBase, ChapterExtractor):
|
||||
|
||||
class HbrowseMangaExtractor(HbrowseBase, MangaExtractor):
|
||||
"""Extractor for manga from hbrowse.com"""
|
||||
pattern = r"(?:https?://)?(?:www\.)?hbrowse\.com(/\d+)/?$"
|
||||
chapterclass = HbrowseChapterExtractor
|
||||
reverse = False
|
||||
pattern = r"(?:https?://)?(?:www\.)?hbrowse\.com(/\d+)/?$"
|
||||
test = ("https://www.hbrowse.com/10363", {
|
||||
"url": "b89682bfb86c11d2af0dc47463804ec3ac4aadd6",
|
||||
"keyword": "4b15fda1858a69de1fbf5afddfe47dd893397312",
|
||||
|
@ -62,6 +62,7 @@ class Hentai2readChapterExtractor(Hentai2readBase, ChapterExtractor):
|
||||
|
||||
class Hentai2readMangaExtractor(Hentai2readBase, MangaExtractor):
|
||||
"""Extractor for hmanga from hentai2read.com"""
|
||||
chapterclass = Hentai2readChapterExtractor
|
||||
pattern = r"(?:https?://)?(?:www\.)?hentai2read\.com(/[^/?&#]+)/?$"
|
||||
test = (
|
||||
("https://hentai2read.com/amazon_elixir/", {
|
||||
|
@ -62,6 +62,7 @@ class HentaihereChapterExtractor(HentaihereBase, ChapterExtractor):
|
||||
|
||||
class HentaihereMangaExtractor(HentaihereBase, MangaExtractor):
|
||||
"""Extractor for hmanga from hentaihere.com"""
|
||||
chapterclass = HentaihereChapterExtractor
|
||||
pattern = r"(?:https?://)?(?:www\.)?hentaihere\.com(/m/S\d+)/?$"
|
||||
test = (
|
||||
("https://hentaihere.com/m/S13812", {
|
||||
|
@ -180,6 +180,7 @@ class KissmangaChapterExtractor(KissmangaBase, ChapterExtractor):
|
||||
|
||||
class KissmangaMangaExtractor(KissmangaBase, MangaExtractor):
|
||||
"""Extractor for manga from kissmanga.com"""
|
||||
chapterclass = KissmangaChapterExtractor
|
||||
pattern = (r"(?i)(?:https?://)?(?:www\.)?kissmanga\.com"
|
||||
r"(/Manga/[^/?&#]+/?)$")
|
||||
test = (
|
||||
|
@ -86,6 +86,7 @@ class KomikcastChapterExtractor(KomikcastBase, ChapterExtractor):
|
||||
|
||||
class KomikcastMangaExtractor(KomikcastBase, MangaExtractor):
|
||||
"""Extractor for manga from komikcast.com"""
|
||||
chapterclass = KomikcastChapterExtractor
|
||||
pattern = (r"(?:https?://)?(?:www\.)?komikcast\.com"
|
||||
r"(/(?:komik/)?[^/?&#]+)/?$")
|
||||
test = (
|
||||
|
@ -85,6 +85,7 @@ class MangahereChapterExtractor(MangahereBase, ChapterExtractor):
|
||||
|
||||
class MangahereMangaExtractor(MangahereBase, MangaExtractor):
|
||||
"""Extractor for manga from mangahere.cc"""
|
||||
chapterclass = MangahereChapterExtractor
|
||||
pattern = (r"(?:https?://)?(?:www\.|m\.)?mangahere\.c[co]"
|
||||
r"(/manga/[^/]+)/?(?:#.*)?$")
|
||||
test = (
|
||||
|
@ -28,6 +28,7 @@ class MangapandaChapterExtractor(MangapandaBase, MangareaderChapterExtractor):
|
||||
|
||||
class MangapandaMangaExtractor(MangapandaBase, MangareaderMangaExtractor):
|
||||
"""Extractor for manga from mangapanda.com"""
|
||||
chapterclass = MangapandaChapterExtractor
|
||||
pattern = r"(?:https?://)?(?:www\.)?mangapanda\.com(/[^/?&#]+)/?$"
|
||||
test = ("https://www.mangapanda.com/mushishi", {
|
||||
"url": "357f965732371cac1990fee8b480f62e29141a42",
|
||||
|
@ -102,6 +102,7 @@ class MangaparkChapterExtractor(MangaparkBase, ChapterExtractor):
|
||||
|
||||
class MangaparkMangaExtractor(MangaparkBase, MangaExtractor):
|
||||
"""Extractor for manga from mangapark.me"""
|
||||
chapterclass = MangaparkChapterExtractor
|
||||
pattern = (r"(?:https?://)?(?:www\.)?mangapark\.(me|net|com)"
|
||||
r"(/manga/[^/?&#]+)/?$")
|
||||
test = (
|
||||
|
@ -95,8 +95,9 @@ class MangareaderChapterExtractor(MangareaderBase, ChapterExtractor):
|
||||
|
||||
class MangareaderMangaExtractor(MangareaderBase, MangaExtractor):
|
||||
"""Extractor for manga from mangareader.net"""
|
||||
pattern = r"(?:https?://)?(?:www\.)?mangareader\.net(/[^/?&#]+)/?$"
|
||||
chapterclass = MangareaderChapterExtractor
|
||||
reverse = False
|
||||
pattern = r"(?:https?://)?(?:www\.)?mangareader\.net(/[^/?&#]+)/?$"
|
||||
test = ("https://www.mangareader.net/mushishi", {
|
||||
"url": "bc203b858b4ad76e5d77e39118a7be0350e357da",
|
||||
"keyword": "031b3ea085921c552de017ecbb9b906e462229c9",
|
||||
|
@ -62,6 +62,7 @@ class ReadcomiconlineIssueExtractor(ReadcomiconlineBase, ChapterExtractor):
|
||||
|
||||
class ReadcomiconlineComicExtractor(ReadcomiconlineBase, MangaExtractor):
|
||||
"""Extractor for comics from readcomiconline.to"""
|
||||
chapterclass = ReadcomiconlineIssueExtractor
|
||||
subcategory = "comic"
|
||||
pattern = (r"(?i)(?:https?://)?(?:www\.)?readcomiconline\.to"
|
||||
r"(/Comic/[^/?&#]+/?)$")
|
||||
|
Loading…
Reference in New Issue
Block a user