recognize v2.mangapark URLs (#1578)
* recognize v2.mangapark URLs * update mangapark root url to use the v2 subdomain
This commit is contained in:
parent
e6811c7450
commit
264beb8556
@ -17,7 +17,7 @@ import re
|
||||
class MangaparkBase():
|
||||
"""Base class for mangapark extractors"""
|
||||
category = "mangapark"
|
||||
root_fmt = "https://mangapark.{}"
|
||||
root_fmt = "https://v2.mangapark.{}"
|
||||
browser = "firefox"
|
||||
|
||||
@staticmethod
|
||||
@ -51,7 +51,7 @@ class MangaparkBase():
|
||||
|
||||
class MangaparkChapterExtractor(MangaparkBase, ChapterExtractor):
|
||||
"""Extractor for manga-chapters from mangapark.net"""
|
||||
pattern = (r"(?:https?://)?(?:www\.)?mangapark\.(me|net|com)"
|
||||
pattern = (r"(?:https?://)?(?:www\.|v2\.)?mangapark\.(me|net|com)"
|
||||
r"/manga/([^?#]+/i\d+)")
|
||||
test = (
|
||||
("https://mangapark.net/manga/gosu/i811653/c055/1", {
|
||||
@ -117,7 +117,7 @@ class MangaparkChapterExtractor(MangaparkBase, ChapterExtractor):
|
||||
class MangaparkMangaExtractor(MangaparkBase, MangaExtractor):
|
||||
"""Extractor for manga from mangapark.net"""
|
||||
chapterclass = MangaparkChapterExtractor
|
||||
pattern = (r"(?:https?://)?(?:www\.)?mangapark\.(me|net|com)"
|
||||
pattern = (r"(?:https?://)?(?:www\.|v2\.)?mangapark\.(me|net|com)"
|
||||
r"(/manga/[^/?#]+)/?$")
|
||||
test = (
|
||||
("https://mangapark.net/manga/aria", {
|
||||
|
Loading…
x
Reference in New Issue
Block a user