update extractor test results

still not everything, but good enough for now
This commit is contained in:
Mike Fährmann
2023-11-27 18:30:53 +01:00
parent 013ca21543
commit 625e94fa7d
43 changed files with 398 additions and 197 deletions

View File

@@ -9,33 +9,53 @@ from gallery_dl.extractor import cyberdrop
__tests__ = (
{
"#url" : "https://cyberdrop.me/a/keKRjm4t",
"#comment" : "images",
"#url" : "https://cyberdrop.me/a/8uE0wQiK",
"#category": ("lolisafe", "cyberdrop", "album"),
"#class" : cyberdrop.CyberdropAlbumExtractor,
"#pattern" : r"https://fs-\d+\.cyberdrop\.to/.*\.(jpg|png|webp)$",
"#pattern" : r"https://sun\.cyberdrop\.ch/api/fc/yyK9y8xpQK5dP\?.+",
"#sha1_content": "0c8768055e4e20e7c7259608b67799171b691140",
"album_id" : "keKRjm4t",
"album_name" : "Fate (SFW)",
"album_size" : 150069254,
"count" : 62,
"date" : "dt:2020-06-18 13:14:20",
"description": "",
"id" : r"re:\w{8}",
"album_id" : "8uE0wQiK",
"album_name" : "test テスト \"&>",
"album_size" : 182,
"count" : 1,
"date" : "dt:2023-11-26 00:00:00",
"description" : "test テスト \"&>",
"extension" : "png",
"filename" : "test-テスト--22->-rwU3x9LU",
"id" : "rwU3x9LU",
"name" : "test-テスト--22->",
"num" : 1,
"size" : 182,
"slug" : "yyK9y8xpQK5dP",
"thumbnailUrl": str,
"type" : "image/png",
"url" : str,
},
{
"#url" : "https://cyberdrop.to/a/l8gIAXVD",
"#comment" : "videos",
"#url" : "https://cyberdrop.me/a/HriMgbuf",
"#category": ("lolisafe", "cyberdrop", "album"),
"#class" : cyberdrop.CyberdropAlbumExtractor,
"#pattern" : r"https://fs-\d+\.cyberdrop\.to/.*\.mp4$",
"#count" : 31,
"#pattern" : r"https://sun\.cyberdrop\.ch/api/fc/\w+\?.+",
"#count" : 3,
"album_id" : "l8gIAXVD",
"album_name": "Achelois17 videos",
"album_size": 652037121,
"date" : "dt:2020-06-16 15:40:44",
"album_id" : "HriMgbuf",
"album_name" : "animations",
"album_size" : 1090519,
"count" : 3,
"date" : "dt:2023-11-26 00:00:00",
"description" : "animated stuff",
"extension" : r"re:gif|webm",
"filename" : r"re:danbooru_\d+_\w+-\w+",
"id" : str,
"name" : r"re:danbooru_\d+_\w+",
"num" : range(1, 3),
"size" : int,
"slug" : str,
"thumbnailUrl": str,
"type" : r"re:image/gif|video/webm",
"url" : str,
},
)