[bato] rename to 'batoto'

to use the same category name as the previous bato.to site
This commit is contained in:
Mike Fährmann
2024-01-06 01:49:34 +01:00
parent 3aa24c3744
commit b11c352d66
5 changed files with 22 additions and 22 deletions

View File

@@ -24,7 +24,7 @@ modules = [
"architizer",
"artstation",
"aryion",
"bato",
"batoto",
"bbc",
"behance",
"blogger",

View File

@@ -14,9 +14,9 @@ BASE_PATTERN = (r"(?:https?://)?"
r"(?:(?:ba|d|w)to\.to|\.to|(?:batotoo|mangatoto)\.com)")
class BatoBase():
"""Base class for bato extractors"""
category = "bato"
class BatotoBase():
"""Base class for batoto extractors"""
category = "batoto"
root = "https://bato.to"
def request(self, url, **kwargs):
@@ -24,7 +24,7 @@ class BatoBase():
return Extractor.request(self, url, **kwargs)
class BatoChapterExtractor(BatoBase, ChapterExtractor):
class BatotoChapterExtractor(BatotoBase, ChapterExtractor):
"""Extractor for bato.to manga chapters"""
pattern = BASE_PATTERN + r"/(?:title/[^/?#]+|chapter)/(\d+)"
example = "https://bato.to/title/12345-MANGA/54321"
@@ -72,10 +72,10 @@ class BatoChapterExtractor(BatoBase, ChapterExtractor):
]
class BatoMangaExtractor(BatoBase, MangaExtractor):
class BatotoMangaExtractor(BatotoBase, MangaExtractor):
"""Extractor for bato.to manga"""
reverse = False
chapterclass = BatoChapterExtractor
chapterclass = BatotoChapterExtractor
pattern = BASE_PATTERN + r"/(?:title|series)/(\d+)[^/?#]*/?$"
example = "https://bato.to/title/12345-MANGA/"