[mangadex] update URL pattern
Manga URLs now begin with /title/ instead of /manga/
This commit is contained in:
@@ -110,7 +110,8 @@ class MangadexMangaExtractor(MangadexExtractor):
|
|||||||
"""Extractor for manga from mangadex.org"""
|
"""Extractor for manga from mangadex.org"""
|
||||||
subcategory = "manga"
|
subcategory = "manga"
|
||||||
categorytransfer = True
|
categorytransfer = True
|
||||||
pattern = [r"(?:https?://)?(?:www\.)?mangadex\.(?:org|com)/manga/(\d+)"]
|
pattern = [r"(?:https?://)?(?:www\.)?mangadex\.(?:org|com)"
|
||||||
|
r"/(?:title|manga)/(\d+)"]
|
||||||
test = [
|
test = [
|
||||||
("https://mangadex.org/manga/2946/souten-no-koumori", {
|
("https://mangadex.org/manga/2946/souten-no-koumori", {
|
||||||
"count": ">= 1",
|
"count": ">= 1",
|
||||||
@@ -131,6 +132,7 @@ class MangadexMangaExtractor(MangadexExtractor):
|
|||||||
("https://mangadex.org/manga/13318/dagashi-kashi/chapters/2/", {
|
("https://mangadex.org/manga/13318/dagashi-kashi/chapters/2/", {
|
||||||
"count": ">= 100",
|
"count": ">= 100",
|
||||||
}),
|
}),
|
||||||
|
("https://mangadex.org/title/2946/souten-no-koumori", None),
|
||||||
]
|
]
|
||||||
|
|
||||||
def __init__(self, match):
|
def __init__(self, match):
|
||||||
|
|||||||
Reference in New Issue
Block a user