1
0
mirror of https://github.com/mikf/gallery-dl.git synced 2024-11-25 20:22:36 +01:00
gallery-dl/test/results/cyberdrop.py
Mike Fährmann 625e94fa7d
update extractor test results
still not everything, but good enough for now
2023-11-27 18:30:53 +01:00

62 lines
1.9 KiB
Python

# -*- coding: utf-8 -*-
# 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
# published by the Free Software Foundation.
from gallery_dl.extractor import cyberdrop
__tests__ = (
{
"#url" : "https://cyberdrop.me/a/8uE0wQiK",
"#category": ("lolisafe", "cyberdrop", "album"),
"#class" : cyberdrop.CyberdropAlbumExtractor,
"#pattern" : r"https://sun\.cyberdrop\.ch/api/fc/yyK9y8xpQK5dP\?.+",
"#sha1_content": "0c8768055e4e20e7c7259608b67799171b691140",
"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.me/a/HriMgbuf",
"#category": ("lolisafe", "cyberdrop", "album"),
"#class" : cyberdrop.CyberdropAlbumExtractor,
"#pattern" : r"https://sun\.cyberdrop\.ch/api/fc/\w+\?.+",
"#count" : 3,
"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,
},
)