Skip to content

Bulk asynchronous downloader for multiple file hosts

1.4 KB
Raw Blame
DOMAIN = "porntrex"
TEST_CASES = [
    {
        "url": "https://www.porntrex.com/video/3001819/a-pandemic-will-not-stop-the-two-lovers",
        "results": [
            {
                "url": "https://www.porntrex.com/video/3001819",
                "debrid_url": "re:/get_file/",
                "filename": "A pandemic will not stop the two lovers [3001819][1080p].mp4",
                "original_filename": "A pandemic will not stop the two lovers",
                "download_folder": "re:Loose Files (Porntrex)",
                "referer": "https://www.porntrex.com/video/3001819",
                "uploaded_at": None,
            }
        ],
    },
    {
        "url": "https://www.porntrex.com/albums/57737/brandi-love-set-35/",
        "results": [
            {
                "url": "re:/get_image/",
                "referer": "https://www.porntrex.com/albums/57737/brandi-love-set-35/",
                "download_folder": "re:Brandi Love SET 35 (Porntrex)",
                "uploaded_at": None,
                "album_id": "57737",
            }
        ],
        "count": 376,
    },
    {
        "url": "https://www.porntrex.com/search/song/",
        "results": [
            {
                "url": "ANY",
                "download_folder": "re:song [search] (Porntrex)",
                "album_id": None,
            }
        ],
        "count": range(240, 300),
    },
]