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