Skip to content

Bulk asynchronous downloader for multiple file hosts

1.4 KB
Raw Blame
DOMAIN = "thothub"
TEST_CASES = [
    {
        "url": "https://thothub.to/videos/1415181/kateharperxo/",
        "results": [
            {
                "url": "https://thothub.to/videos/1415181/kateharperxo/",
                "filename": "Kateharperxo [1415181].mp4",
                "referer": "https://thothub.to/videos/1415181/kateharperxo/",
                "album_id": None,
            }
        ],
    },
    {
        "url": "https://thothub.lol/albums/42921/ivy-king-of-selects/",
        "results": [
            {
                "url": "https://thothub.lol/get_image/45/0fd48eeb530b9232d216b579cd58ce9b/sources/42000/42921/2113169.jpg/",
                "filename": "2113169.jpg",
                "referer": "https://thothub.lol/get_image/45/0fd48eeb530b9232d216b579cd58ce9b/sources/42000/42921/2113169.jpg/",
                "album_id": "42921",
                "uploaded_at": None,
                "download_folder": "re:Ivy King - OF Selects [album] (ThotHub)",
            }
        ],
        "count": 112,
    },
    {
        "url": "https://thothub.to/tags/daringkiara/",
        "results": [{"url": "ANY", "uploaded_at": None, "download_folder": "re:daringkiara [tags] (ThotHub)"}],
        "count": range(31, 50),
    },
    {
        "url": "https://thothub.to/search/daringkiara/",
        "results": [{"url": "ANY", "uploaded_at": None, "download_folder": "re:daringkiara [search] (ThotHub)"}],
        "count": range(31, 50),
    },
]