Skip to content

Bulk asynchronous downloader for multiple file hosts

1.4 KB
Raw Blame
DOMAIN = "giphy"
TEST_CASES = [
    {
        "url": "https://giphy.com/gifs/grandma-grandmother-offline-granny-B3s64Jh73fIk7qYLB5",
        "results": [
            {
                "url": "https://media2.giphy.com/media/B3s64Jh73fIk7qYLB5/giphy.gif",
                "filename": "Work Vintage [B3s64Jh73fIk7qYLB5].gif",
                "debrid_url": None,
                "original_filename": "Work Vintage GIF by Offline Granny! - Find & Share on GIPHY",
                "referer": "https://giphy.com/gifs/grandma-grandmother-offline-granny-B3s64Jh73fIk7qYLB5",
                "album_id": None,
                "uploaded_at": None,
                "download_folder": "re:Loose Files (Giphy)",
            }
        ],
        "count": 1,
    },
    {
        "url": "https://media2.giphy.com/media/B3s64Jh73fIk7qYLB5/giphy.gif",
        "results": [
            {
                "url": "https://media2.giphy.com/media/B3s64Jh73fIk7qYLB5/giphy.gif",
                "filename": "Work Vintage [B3s64Jh73fIk7qYLB5].gif",
                "debrid_url": None,
                "original_filename": "Work Vintage GIF by Offline Granny! - Find & Share on GIPHY",
                "referer": "https://giphy.com/gifs/B3s64Jh73fIk7qYLB5",
                "album_id": None,
                "uploaded_at": None,
                "download_folder": "re:Loose Files (Giphy)",
            }
        ],
        "count": 1,
    },
]