mirror of
https://github.com/mikf/gallery-dl.git
synced 2024-11-23 19:22:32 +01:00
40 lines
1.4 KiB
Python
40 lines
1.4 KiB
Python
# -*- coding: utf-8 -*-
|
|
|
|
# Copyright 2015-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
|
|
# published by the Free Software Foundation.
|
|
|
|
"""Extract manga-chapters and entire manga from http://www.mangapanda.com/"""
|
|
|
|
from .mangareader import MangareaderMangaExtractor, MangareaderChapterExtractor
|
|
|
|
|
|
class MangapandaBase():
|
|
"""Base class for mangapanda extractors"""
|
|
category = "mangapanda"
|
|
root = "http://www.mangapanda.com"
|
|
|
|
|
|
class MangapandaMangaExtractor(MangapandaBase, MangareaderMangaExtractor):
|
|
"""Extractor for manga from mangapanda.com"""
|
|
pattern = [r"(?:https?://)?((?:www\.)?mangapanda\.com/[^/]+)$"]
|
|
test = [("http://www.mangapanda.com/mushishi", {
|
|
"url": "50a1ba730b85426b904da256c80f68ba6a8a2566",
|
|
})]
|
|
|
|
|
|
class MangapandaChapterExtractor(MangapandaBase, MangareaderChapterExtractor):
|
|
"""Extractor for manga-chapters from mangapanda.com"""
|
|
subcategory = "chapter"
|
|
pattern = [
|
|
(r"(?:https?://)?(?:www\.)?mangapanda\.com((/[^/]+)/(\d+))"),
|
|
(r"(?:https?://)?(?:www\.)?mangapanda\.com"
|
|
r"(/\d+-\d+-\d+(/[^/]+)/chapter-(\d+).html)"),
|
|
]
|
|
test = [("http://www.mangapanda.com/red-storm/2", {
|
|
"url": "4bf4ddf6c50105ec8a37675495ab80c46608275d",
|
|
"keyword": "89c712f7ed255ec9c1d8e84dcb5a160b6cb4498c",
|
|
})]
|