[tcbscans] support other domains
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
# published by the Free Software Foundation.
|
||||
|
||||
from gallery_dl.extractor import tcbscans
|
||||
from gallery_dl import exception
|
||||
|
||||
|
||||
__tests__ = (
|
||||
@@ -34,12 +35,28 @@ __tests__ = (
|
||||
"chapter_minor": "",
|
||||
"lang" : "en",
|
||||
"language" : "English",
|
||||
"#exception" : exception.HttpError,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://onepiecechapters.com/chapters/44/ace-novel-manga-adaptation-chapter-1",
|
||||
"#category": ("", "tcbscans", "chapter"),
|
||||
"#class" : tcbscans.TcbscansChapterExtractor,
|
||||
"#exception": exception.HttpError,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://tcb-backup.bihar-mirchi.com/chapters/7719/jujutsu-kaisen-chapter-258",
|
||||
"#category": ("", "tcbscans", "chapter"),
|
||||
"#class" : tcbscans.TcbscansChapterExtractor,
|
||||
"#pattern" : r"https://cdn\.[^/]+/(file|attachments/[^/]+)/[^/]+/[^.]+\.\w+",
|
||||
"#count" : 15,
|
||||
|
||||
"manga" : "Jujutsu Kaisen",
|
||||
"chapter" : 258,
|
||||
"chapter_minor": "",
|
||||
"lang" : "en",
|
||||
"language" : "English",
|
||||
},
|
||||
|
||||
{
|
||||
@@ -58,12 +75,20 @@ __tests__ = (
|
||||
"#pattern" : tcbscans.TcbscansChapterExtractor.pattern,
|
||||
"#range" : "1-50",
|
||||
"#count" : 50,
|
||||
"#exception": exception.HttpError,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://onepiecechapters.com/mangas/15/hunter-x-hunter",
|
||||
"#category": ("", "tcbscans", "manga"),
|
||||
"#class" : tcbscans.TcbscansMangaExtractor,
|
||||
"#exception": exception.HttpError,
|
||||
},
|
||||
|
||||
{
|
||||
"#url" : "https://tcbscans.me/mangas/4/jujutsu-kaisen",
|
||||
"#category": ("", "tcbscans", "manga"),
|
||||
"#class" : tcbscans.TcbscansMangaExtractor,
|
||||
},
|
||||
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user