[pixeldrain] add support for single file album download

This commit is contained in:
HornyQT
2024-05-25 14:44:34 +02:00
parent ea434963ae
commit 24e70b956b
3 changed files with 69 additions and 3 deletions

View File

@@ -89,4 +89,43 @@ __tests__ = (
"mime_type" : str,
},
{
"#url" : "https://pixeldrain.com/l/zQ7XpWfM#item=0",
"#category": ("", "pixeldrain", "singlefilefromalbums"),
"#class" : pixeldrain.PixeldrainSinglefilefromalbumsExtractor,
"#urls" : "https://pixeldrain.com/api/file/jW9E6s4h?download",
"#sha1_content": "0c8768055e4e20e7c7259608b67799171b691140",
"file" : {
"abuse_reporter_name" : "",
"abuse_type" : "",
"allow_video_player" : True,
"availability" : "",
"availability_message": "",
"bandwidth_used" : int,
"bandwidth_used_paid" : 0,
"can_download" : True,
"can_edit" : False,
"date" : "dt:2023-11-22 16:33:27",
"date_last_view" : r"re:\d+-\d+-\d+T\d+:\d+:\d+\.\d+Z",
"date_upload" : "2023-11-22T16:33:27.744Z",
"delete_after_date" : "0001-01-01T00:00:00Z",
"delete_after_downloads": 0,
"download_speed_limit": 0,
"downloads" : int,
"extension" : "png",
"filename" : "test-テスト-\"&>",
"hash_sha256" : "eb359cd8f02a7d6762f9863798297ff6a22569c5c87a9d38c55bdb3a3e26003f",
"id" : "jW9E6s4h",
"mime_type" : "image/png",
"name" : "test-テスト-\"&>.png",
"show_ads" : True,
"size" : 182,
"success" : True,
"thumbnail_href" : "/file/jW9E6s4h/thumbnail",
"url" : "https://pixeldrain.com/api/file/jW9E6s4h?download",
"views" : int,
},
},
)