Skip to content

Bulk asynchronous downloader for multiple file hosts

1.6 KB
Raw Blame
DOMAIN = "disk.yandex"
TEST_CASES = [
    {
        "url": "https://disk.yandex.com/d/wSoTAc690rO3wg",
        "results": [
            {
                "url": "https://disk.yandex.com/d/wSoTAc690rO3wg/ace%20ventura/Ace%20Ventura%20-%20Pet%20Detective%20(1994).mp4",
                "filename": "Ace Ventura - Pet Detective (1994).mp4",
                "debrid_url": "re:https://downloader.disk.yandex.com/disk/",
                "original_filename": "Ace Ventura - Pet Detective (1994).mp4",
                "referer": "https://disk.yandex.com/d/wSoTAc690rO3wg/ace%20ventura/Ace%20Ventura%20-%20Pet%20Detective%20(1994).mp4",
                "album_id": "808eb04e24ecb99c8cca60edf6b4a24dbf26a575e48bcbef49ae42e4742f51a0",
                "uploaded_at": 1789752612,
                "download_folder": "re:Sample (YandexDisk)/ace ventura",
                "thumbnail": None,
            }
        ],
        "count": 1,
    },
    {
        "url": "https://disk.360.yandex.ru/i/TM2xsIVsgjY4uw",
        "results": [
            {
                "url": "https://disk.360.yandex.ru/i/TM2xsIVsgjY4uw",
                "filename": "Cars для суперсет 18.07.2025 14-19-50 - запись.mp4",
                "debrid_url": "re:https://downloader.disk.yandex.ru/disk/",
                "original_filename": "Cars для суперсет 18.07.2025 14-19-50 - запись.mp4",
                "referer": "https://disk.360.yandex.ru/i/TM2xsIVsgjY4uw",
                "album_id": None,
                "uploaded_at": 1753712643,
                "download_folder": "re:Loose Files (YandexDisk)",
                "thumbnail": None,
            }
        ],
        "count": 1,
    },
]