update extractor test results

This commit is contained in:
Mike Fährmann
2021-09-03 01:01:59 +02:00
parent eed6ef3de0
commit 47a780942c
8 changed files with 18 additions and 15 deletions

View File

@@ -332,7 +332,7 @@ class DeviantartExtractor(Extractor):
self.log.info( self.log.info(
"Watching %s for premium folder access", username) "Watching %s for premium folder access", username)
else: else:
self.warning.info( self.log.warning(
"Error when trying to watch %s. " "Error when trying to watch %s. "
"Try again with a new refresh-token", username) "Try again with a new refresh-token", username)
else: else:

View File

@@ -136,7 +136,7 @@ class DynastyscansImageExtractor(DynastyscansSearchExtractor):
pattern = BASE_PATTERN + r"/images/(\d+)" pattern = BASE_PATTERN + r"/images/(\d+)"
test = ("https://dynasty-scans.com/images/1245", { test = ("https://dynasty-scans.com/images/1245", {
"url": "15e54bd94148a07ed037f387d046c27befa043b2", "url": "15e54bd94148a07ed037f387d046c27befa043b2",
"keyword": "3b630c6139e5ff06e141541d57960f8a2957efbb", "keyword": "0d8976c2d6fbc9ed6aa712642631b96e456dc37f",
}) })
def images(self): def images(self):

View File

@@ -102,7 +102,7 @@ class GfycatImageExtractor(GfycatExtractor):
"keyword": { "keyword": {
"gfyId": "graygenerouscowrie", "gfyId": "graygenerouscowrie",
"gfyName": "GrayGenerousCowrie", "gfyName": "GrayGenerousCowrie",
"gfyNumber": "755075459", "gfyNumber": 755075459,
"title": "Bottom's up", "title": "Bottom's up",
"username": "jackson3oh3", "username": "jackson3oh3",
"createDate": 1495884169, "createDate": 1495884169,

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright 2015-2020 Mike Fährmann # Copyright 2015-2021 Mike Fährmann
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as # it under the terms of the GNU General Public License version 2 as
@@ -35,12 +35,12 @@ class HitomiGalleryExtractor(GalleryExtractor):
}), }),
# Game CG with scenes (#321) # Game CG with scenes (#321)
("https://hitomi.la/galleries/733697.html", { ("https://hitomi.la/galleries/733697.html", {
"url": "1de8510bd4c3048a1cbbf242505d8449e93ba5a4", "url": "e057652b40629d3d72b0ef059c6ec7556417139c",
"count": 210, "count": 210,
}), }),
# fallback for galleries only available through /reader/ URLs # fallback for galleries only available through /reader/ URLs
("https://hitomi.la/galleries/1045954.html", { ("https://hitomi.la/galleries/1045954.html", {
"url": "681bb07d8ce4d0c4d0592e47b239b6e42d566386", "url": "779b94b47d5f0c2341db03499270d2b5370196f6",
"count": 1413, "count": 1413,
}), }),
# gallery with "broken" redirect # gallery with "broken" redirect

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright 2016-2020 Mike Fährmann # Copyright 2016-2021 Mike Fährmann
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as # it under the terms of the GNU General Public License version 2 as
@@ -36,12 +36,14 @@ class ImagefapGalleryExtractor(ImagefapExtractor):
test = ( test = (
("https://www.imagefap.com/pictures/7102714", { ("https://www.imagefap.com/pictures/7102714", {
"pattern": r"https://cdn.imagefap.com/images/full/\d+/\d+/\d+.jpg", "pattern": r"https://cdnh\.imagefap\.com"
r"/images/full/\d+/\d+/\d+\.jpg",
"keyword": "2ba96e84c2952c4750e9fa94a3f2b1f965cec2f3", "keyword": "2ba96e84c2952c4750e9fa94a3f2b1f965cec2f3",
"content": "694a0a57385980a6f90fbc296cadcd6c11ba2dab", "content": "694a0a57385980a6f90fbc296cadcd6c11ba2dab",
}), }),
("https://www.imagefap.com/gallery/5486966", { ("https://www.imagefap.com/gallery/5486966", {
"pattern": r"https://cdn.imagefap.com/images/full/\d+/\d+/\d+.jpg", "pattern": r"https://cdnh\.imagefap\.com"
r"/images/full/\d+/\d+/\d+\.jpg",
"keyword": "3e24eace5b09639b881ebd393165862feb46adde", "keyword": "3e24eace5b09639b881ebd393165862feb46adde",
}), }),
("https://www.imagefap.com/gallery.php?gid=7102714"), ("https://www.imagefap.com/gallery.php?gid=7102714"),
@@ -105,7 +107,8 @@ class ImagefapImageExtractor(ImagefapExtractor):
pattern = BASE_PATTERN + r"/photo/(\d+)" pattern = BASE_PATTERN + r"/photo/(\d+)"
test = ( test = (
("https://www.imagefap.com/photo/1369341772/", { ("https://www.imagefap.com/photo/1369341772/", {
"pattern": r"https://cdn.imagefap.com/images/full/\d+/\d+/\d+.jpg", "pattern": r"https://cdnh\.imagefap\.com"
r"/images/full/\d+/\d+/\d+\.jpg",
"keyword": "8894e45f7262020d8d66ce59917315def1fc475b", "keyword": "8894e45f7262020d8d66ce59917315def1fc475b",
}), }),
("https://beta.imagefap.com/photo/1369341772/"), ("https://beta.imagefap.com/photo/1369341772/"),

View File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*- # -*- coding: utf-8 -*-
# Copyright 2019 Mike Fährmann # Copyright 2019-2021 Mike Fährmann
# #
# This program is free software; you can redistribute it and/or modify # This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as # it under the terms of the GNU General Public License version 2 as
@@ -31,7 +31,7 @@ class PornhubGalleryExtractor(PornhubExtractor):
test = ( test = (
("https://www.pornhub.com/album/19289801", { ("https://www.pornhub.com/album/19289801", {
"pattern": r"https://\w+.phncdn.com/pics/albums/\d+/\d+/\d+/\d+/", "pattern": r"https://\w+.phncdn.com/pics/albums/\d+/\d+/\d+/\d+/",
"count": 308, "count": ">= 300",
"keyword": { "keyword": {
"id" : int, "id" : int,
"num" : int, "num" : int,

View File

@@ -105,7 +105,7 @@ class SeisopartyPostExtractor(SeisopartyExtractor):
"url": "75f13b92de0ce399b6163c3de18f1f36011c2366", "url": "75f13b92de0ce399b6163c3de18f1f36011c2366",
"count": 2, "count": 2,
"keyword": { "keyword": {
"content": "この前描いためぐるちゃんのPSDファイルです。\n" "content": "この前描いためぐるちゃんのPSDファイルです。<br/>"
"どうぞよろしくお願いします。", "どうぞよろしくお願いします。",
"date": "dt:2021-05-06 12:38:31", "date": "dt:2021-05-06 12:38:31",
"extension": "re:psd|jpg", "extension": "re:psd|jpg",

View File

@@ -115,13 +115,13 @@ class UnsplashImageExtractor(UnsplashExtractor):
"id": "uMJXuywXLiU", "id": "uMJXuywXLiU",
"instagram_username": "just_midwest_rock", "instagram_username": "just_midwest_rock",
"last_name": "Hoefler", "last_name": "Hoefler",
"location": None, "location": "Madison, WI",
"name": "Dave Hoefler", "name": "Dave Hoefler",
"portfolio_url": str, "portfolio_url": str,
"total_collections": int, "total_collections": int,
"total_likes": int, "total_likes": int,
"total_photos": int, "total_photos": int,
"twitter_username": None, "twitter_username": "dave_hoefler",
"updated_at": str, "updated_at": str,
"username": "davehoefler", "username": "davehoefler",
}, },