1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2025-01-31 19:51:34 +01:00

[manganelo] simplify URL pattern

This commit is contained in:
Mike Fährmann 2023-02-16 21:36:11 +01:00
parent bd5d08abbc
commit 363bb76dff
No known key found for this signature in database
GPG Key ID: 5680CA389D365A88

View File

@ -10,12 +10,11 @@ from .common import ChapterExtractor, MangaExtractor
from .. import text
import re
BASE_PATTERN = \
r"(?:https?://)?((?:chap|read|www\.|m\.)?mangan(?:ato|elo)\.com)"
BASE_PATTERN = r"(?:https?://)?((?:chap|read|www\.|m\.)?mangan(?:at|el)o\.com)"
class ManganeloChapterExtractor(ChapterExtractor):
"""Extractor for manga-chapters from manganelo.com"""
"""Extractor for manga chapters from manganelo.com"""
category = "manganelo"
root = "https://chapmanganato.com"
pattern = BASE_PATTERN + r"(/(?:manga-\w+|chapter/\w+)/chapter[-_][^/?#]+)"