Skip to content

Bulk asynchronous downloader for multiple file hosts

1.4 KB
Raw Blame
DOMAIN = "xasiat"
TEST_CASES = [
    {
        "url": "https://www.xasiat.com/albums/30487/cosplay-jk-61p-797mb",
        "results": [
            {
                "url": "re:https://www.xasiat.com/get_image/2/01a28782c7940969a3a3d55ab1842268/sources/30000/30487/2155729.jpg",
                "filename": "2155729.jpg",
                "referer": "re:https://www.xasiat.com/get_image/2/01a28782c7940969a3a3d55ab1842268/sources/30000/30487/2155729.jpg/",
                "album_id": "30487",
                "uploaded_at": None,
                "download_folder": "re:\\[Cosplay\\] 屿鱼 蔚蓝档案 妃咲 JK \\[61P-797MB\\] \\[album\\] \\(Xasiat\\)",
            }
        ],
        "count": 61,
    },
    {
        "url": "https://www.xasiat.com/videos/118933/reina-o-hara-the-power-of-a-bwc",
        "results": [
            {
                "url": "https://www.xasiat.com/videos/118933/reina-o-hara-the-power-of-a-bwc",
                "filename": "Reina O [118933].mp4",
                "debrid_url": "re:https://www.xasiat.com/get_file/28/b50cae708aed94532879c04a3a7added/118000/118933/118933_source.mp4/?v-acctoken=",
                "original_filename": "118933_source.mp4",
                "referer": "https://www.xasiat.com/videos/118933/reina-o-hara-the-power-of-a-bwc",
                "album_id": None,
                "uploaded_at": 1778958065,
                "download_folder": "re:Loose Files (Xasiat)",
            }
        ],
        "count": 1,
    },
]