fix tests and small stuff
This commit is contained in:
@@ -57,7 +57,7 @@ class PawooAccountExtractor(PawooExtractor):
|
|||||||
test = [
|
test = [
|
||||||
("https://pawoo.net/@kuroda", {
|
("https://pawoo.net/@kuroda", {
|
||||||
"url": "a3f9e7555f2b024554c0e9b6cbcc7991af13cf99",
|
"url": "a3f9e7555f2b024554c0e9b6cbcc7991af13cf99",
|
||||||
"keyword": "9ef830113658fa15ed0b931bc3c650c417613162",
|
"keyword": "81e084503755d564ef15ef0db88ae1d9cf89f258",
|
||||||
}),
|
}),
|
||||||
("https://pawoo.net/@zZzZz/", {
|
("https://pawoo.net/@zZzZz/", {
|
||||||
"exception": exception.NotFoundError,
|
"exception": exception.NotFoundError,
|
||||||
@@ -85,7 +85,7 @@ class PawooStatusExtractor(PawooExtractor):
|
|||||||
test = [
|
test = [
|
||||||
("https://pawoo.net/@takehana_note/559043", {
|
("https://pawoo.net/@takehana_note/559043", {
|
||||||
"url": "f95cc8c0274c4143e7e21dbdc693b90c65b596e3",
|
"url": "f95cc8c0274c4143e7e21dbdc693b90c65b596e3",
|
||||||
"keyword": "4fa98754e1bee4be244fd72d01a1cefdc12f9fbb",
|
"keyword": "590105849b0435e17ca65258b9150cd0502d24da",
|
||||||
"content": "3b148cf90174173355fe34179741ce476921b2fc",
|
"content": "3b148cf90174173355fe34179741ce476921b2fc",
|
||||||
}),
|
}),
|
||||||
("https://pawoo.net/@zZzZz/12346", {
|
("https://pawoo.net/@zZzZz/12346", {
|
||||||
|
|||||||
@@ -104,7 +104,7 @@ class RedditAPI():
|
|||||||
def __init__(self, extractor, client_id="6N9uN0krSDE-ig"):
|
def __init__(self, extractor, client_id="6N9uN0krSDE-ig"):
|
||||||
self.extractor = extractor
|
self.extractor = extractor
|
||||||
self.client_id = extractor.config("client-id", client_id)
|
self.client_id = extractor.config("client-id", client_id)
|
||||||
self.comments = extractor.config("comments", 200)
|
self.comments = extractor.config("comments", 500)
|
||||||
self.session = extractor.session
|
self.session = extractor.session
|
||||||
self.session.headers["User-Agent"] = ("Python:gallery-dl:0.8.4"
|
self.session.headers["User-Agent"] = ("Python:gallery-dl:0.8.4"
|
||||||
" (by /u/mikf1)")
|
" (by /u/mikf1)")
|
||||||
|
|||||||
@@ -26,5 +26,5 @@ class YonkouprodMangaExtractor(foolslide.FoolslideMangaExtractor):
|
|||||||
category = "yonkouprod"
|
category = "yonkouprod"
|
||||||
pattern = foolslide.manga_pattern(r"(?:www\.)?yonkouprod\.com/reader")
|
pattern = foolslide.manga_pattern(r"(?:www\.)?yonkouprod\.com/reader")
|
||||||
test = [("https://yonkouprod.com/reader/series/attack-on-titan/", {
|
test = [("https://yonkouprod.com/reader/series/attack-on-titan/", {
|
||||||
"url": "9d43602ad4a3a8cf65922bf106affa5a6b9523b1",
|
"url": "0573665fc91e56d9e7f05bf7a4415af2c59cb43b",
|
||||||
})]
|
})]
|
||||||
|
|||||||
Reference in New Issue
Block a user