summaryrefslogtreecommitdiffstats
path: root/gallery_dl/extractor/tcbscans.py
diff options
context:
space:
mode:
authorLibravatarUnit 193 <unit193@unit193.net>2023-05-28 01:35:27 -0400
committerLibravatarUnit 193 <unit193@unit193.net>2023-05-28 01:35:27 -0400
commit8950c0f2ef55ec2ed36b3fccc9fd85b64b877c3b (patch)
tree353c894306904849b05b4dacbb9ea0966f36bd95 /gallery_dl/extractor/tcbscans.py
parentbff1d7a3fc1f184002ea6c6f77de675885bda3eb (diff)
New upstream version 1.25.5.upstream/1.25.5
Diffstat (limited to 'gallery_dl/extractor/tcbscans.py')
-rw-r--r--gallery_dl/extractor/tcbscans.py18
1 files changed, 9 insertions, 9 deletions
diff --git a/gallery_dl/extractor/tcbscans.py b/gallery_dl/extractor/tcbscans.py
index cac5a54..b5a730a 100644
--- a/gallery_dl/extractor/tcbscans.py
+++ b/gallery_dl/extractor/tcbscans.py
@@ -4,19 +4,20 @@
# it under the terms of the GNU General Public License version 2 as
# published by the Free Software Foundation.
-"""Extractors for https://onepiecechapters.com/"""
+"""Extractors for https://tcbscans.com/"""
from .common import ChapterExtractor, MangaExtractor
from .. import text
+BASE_PATTERN = r"(?:https?://)?(?:tcbscans|onepiecechapters)\.com"
+
class TcbscansChapterExtractor(ChapterExtractor):
category = "tcbscans"
- pattern = (r"(?:https?://)?onepiecechapters\.com"
- r"(/chapters/\d+/[^/?#]+)")
- root = "https://onepiecechapters.com"
+ root = "https://tcbscans.com"
+ pattern = BASE_PATTERN + r"(/chapters/\d+/[^/?#]+)"
test = (
- (("https://onepiecechapters.com"
+ (("https://tcbscans.com"
"/chapters/4708/chainsaw-man-chapter-108"), {
"pattern": (r"https://cdn\.[^/]+"
r"/(file|attachments/[^/]+)/[^/]+/[^.]+\.\w+"),
@@ -66,12 +67,11 @@ class TcbscansChapterExtractor(ChapterExtractor):
class TcbscansMangaExtractor(MangaExtractor):
category = "tcbscans"
+ root = "https://tcbscans.com"
chapterclass = TcbscansChapterExtractor
- pattern = (r"(?:https?://)?onepiecechapters\.com"
- r"(/mangas/\d+/[^/?#]+)")
- root = "https://onepiecechapters.com"
+ pattern = BASE_PATTERN + r"(/mangas/\d+/[^/?#]+)"
test = (
- ("https://onepiecechapters.com/mangas/13/chainsaw-man", {
+ ("https://tcbscans.com/mangas/13/chainsaw-man", {
"pattern": TcbscansChapterExtractor.pattern,
"range" : "1-50",
"count" : 50,