Skip to content

Bulk asynchronous downloader for multiple file hosts

9.8 KB
Raw Blame
DOMAIN = "lensdump"
TEST_CASES = [
    {
        "url": "https://lensdump.com/i/86Njhe",
        "results": [
            {
                "url": "https://lensdump.com/i/86Njhe",
                "filename": "Temple of Doom Gold Series Version 1 [86Njhe].jpg",
                "debrid_url": None,
                "original_filename": "Temple of Doom Gold Series Version 1",
                "referer": "https://lensdump.com/i/86Njhe",
                "album_id": "gAXLD",
                "uploaded_at": 1522263221,
                "download_folder": "re:Indiana Jones Collection (Lensdump)",
                "thumbnail": None,
                "size": None,
                "duration": None,
                "metadata": {
                    "id": "86Njhe",
                    "type": "image",
                    "title": "Temple of Doom Gold Series Version 1",
                    "uploaded_at": "2018-03-28T18:53:41Z",
                    "album": {"id": "gAXLD", "name": "Indiana Jones Collection"},
                    "src": "https://a.l3n.co/86Njhe.jpg",
                    "owner": {
                        "id": "nT93",
                        "username": "nielslauridsen",
                        "name": "tintacle",
                    },
                    "description": None,
                },
                "extra_info": {},
                "id": ["lensdump", "/i/86Njhe"],
            }
        ],
    },
    {
        "url": "https://lensdump.com/i/PWb8q1",
        "results": [
            {
                "url": "https://lensdump.com/i/PWb8q1",
                "filename": "Video senza titolo Realizzato con Clipchamp (22) [PWb8q1].gif",
                "debrid_url": "https://d.l3n.co/PWb8q1.gif",
                "original_filename": "Video senza titolo Realizzato con Clipchamp (22)",
                "referer": "https://lensdump.com/i/PWb8q1",
                "album_id": "9wSLD99O",
                "uploaded_at": 1757859018,
                "download_folder": "re:Earlier uploads 9wSLD99O (Lensdump)",
                "thumbnail": None,
                "size": None,
                "duration": None,
                "parents": [],
                "metadata": {
                    "id": "PWb8q1",
                    "type": "image",
                    "title": "Video senza titolo Realizzato con Clipchamp (22)",
                    "uploaded_at": "2025-09-14T14:10:18Z",
                    "album": {"id": "9wSLD99O", "name": "Earlier uploads"},
                    "src": "https://d.l3n.co/PWb8q1.gif",
                    "owner": None,
                    "description": None,
                },
                "extra_info": {},
                "id": ["lensdump", "/i/PWb8q1"],
                "base64_id": "bGVuc2R1bXAvaS9QV2I4cTE",
            }
        ],
        "count": 1,
    },
    {
        "url": "https://d.l3n.co/PWb8q1.gif",
        "description": "direct URL of the gif above",
        "results": [
            {
                "url": "https://lensdump.com/i/PWb8q1",
                "filename": "Video senza titolo Realizzato con Clipchamp (22) [PWb8q1].gif",
                "debrid_url": "https://d.l3n.co/PWb8q1.gif",
                "original_filename": "Video senza titolo Realizzato con Clipchamp (22)",
                "referer": "https://lensdump.com/i/PWb8q1",
            }
        ],
        "count": 1,
    },
    {
        "url": "https://lensdump.com/a/gAXLD",
        "description": "16 images (8 of them deleted 404)",
        "results": [
            {
                "url": "https://lensdump.com/i/86Njhe",
                "filename": "Temple of Doom Gold Series Version 1 [86Njhe].jpg",
                "debrid_url": None,
                "original_filename": "Temple of Doom Gold Series Version 1",
                "referer": "https://lensdump.com/i/86Njhe",
                "album_id": "gAXLD",
                "uploaded_at": 1522263221,
                "download_folder": "re:Indiana Jones Collection (Lensdump)",
                "thumbnail": None,
                "size": None,
                "duration": None,
                "metadata": {
                    "id": "86Njhe",
                    "type": "image",
                    "title": "Temple of Doom Gold Series Version 1",
                    "uploaded_at": "2018-03-28T18:53:41Z",
                    "album": {"id": "gAXLD", "name": "Indiana Jones Collection"},
                    "src": "https://a.l3n.co/86Njhe.jpg",
                    "owner": {
                        "id": "nT93",
                        "username": "nielslauridsen",
                        "name": "tintacle",
                    },
                    "description": None,
                },
                "extra_info": {},
                "id": ["lensdump", "/i/86Njhe"],
            },
            {
                "url": "https://lensdump.com/i/86NE0Z",
                "filename": "Kingdom of the Crystal Skull Gold Series Version 2 [86NE0Z].jpg",
                "debrid_url": None,
                "original_filename": "Kingdom of the Crystal Skull Gold Series Version 2",
                "referer": "https://lensdump.com/i/86NE0Z",
            },
            {
                "url": "https://lensdump.com/i/9f9Nb",
                "filename": "Raiders of the Lost Ark DCC Version 1 (Vinyl) [9f9Nb].jpg",
                "debrid_url": None,
                "original_filename": "Raiders of the Lost Ark DCC Version 1 (Vinyl)",
                "referer": "https://lensdump.com/i/9f9Nb",
            },
            {
                "url": "https://lensdump.com/i/9fTa2",
                "filename": "Raiders of the Lost Ark DCC Version 1 [9fTa2].jpg",
                "debrid_url": None,
                "original_filename": "Raiders of the Lost Ark DCC Version 1",
                "referer": "https://lensdump.com/i/9fTa2",
            },
            {
                "url": "https://lensdump.com/i/iHD0OF",
                "filename": "Kingdom of the Crystal Skull (DVD Version 1) [iHD0OF].jpg",
                "debrid_url": None,
                "original_filename": "Kingdom of the Crystal Skull (DVD Version 1)",
                "referer": "https://lensdump.com/i/iHD0OF",
            },
            {
                "url": "https://lensdump.com/i/86uXEH",
                "filename": "Raiders of the Lost Ark Gold Series Version 1 [86uXEH].jpg",
                "debrid_url": None,
                "original_filename": "Raiders of the Lost Ark Gold Series Version 1",
                "referer": "https://lensdump.com/i/86uXEH",
            },
            {
                "url": "https://lensdump.com/i/iHuNuK",
                "filename": "Raiders of the Lost Ark (DVD Version 1) [iHuNuK].jpg",
                "debrid_url": None,
                "original_filename": "Raiders of the Lost Ark (DVD Version 1)",
                "referer": "https://lensdump.com/i/iHuNuK",
            },
            {
                "url": "https://lensdump.com/i/iHufAZ",
                "filename": "Temple of Doom (DVD Version 1) [iHufAZ].jpg",
                "debrid_url": None,
                "original_filename": "Temple of Doom (DVD Version 1)",
                "referer": "https://lensdump.com/i/iHufAZ",
            },
            {
                "url": "https://lensdump.com/i/86NICk",
                "filename": "The Last Crusade Gold Series Version 1 [86NICk].jpg",
                "debrid_url": None,
                "original_filename": "The Last Crusade Gold Series Version 1",
                "referer": "https://lensdump.com/i/86NICk",
            },
            {
                "url": "https://lensdump.com/i/86Nt11",
                "filename": "Kingdom of the Crystal Skull Gold Series Version 1 [86Nt11].jpg",
                "debrid_url": None,
                "original_filename": "Kingdom of the Crystal Skull Gold Series Version 1",
                "referer": "https://lensdump.com/i/86Nt11",
            },
            {
                "url": "https://lensdump.com/i/iHDrsD",
                "filename": "The Last Crusade (DVD Alternate) [iHDrsD].jpg",
                "debrid_url": None,
                "original_filename": "The Last Crusade (DVD Alternate)",
                "referer": "https://lensdump.com/i/iHDrsD",
            },
            {
                "url": "https://lensdump.com/i/iHDIc3",
                "filename": "Raiders of the Lost Ark (DVD Alternate) [iHDIc3].jpg",
                "debrid_url": None,
                "original_filename": "Raiders of the Lost Ark (DVD Alternate)",
                "referer": "https://lensdump.com/i/iHDIc3",
            },
            {
                "url": "https://lensdump.com/i/iHDgg0",
                "filename": "Temple of Doom (DVD Alternate) [iHDgg0].jpg",
                "debrid_url": None,
                "original_filename": "Temple of Doom (DVD Alternate)",
                "referer": "https://lensdump.com/i/iHDgg0",
            },
            {
                "url": "https://lensdump.com/i/iHDjEr",
                "filename": "The Last Crusade (DVD Version 1) [iHDjEr].jpg",
                "debrid_url": None,
                "original_filename": "The Last Crusade (DVD Version 1)",
                "referer": "https://lensdump.com/i/iHDjEr",
            },
            {
                "url": "https://lensdump.com/i/iHDtDq",
                "filename": "Kingdom of the Crystal Skull (DVD Alternate) [iHDtDq].jpg",
                "debrid_url": None,
                "original_filename": "Kingdom of the Crystal Skull (DVD Alternate)",
                "referer": "https://lensdump.com/i/iHDtDq",
            },
            {
                "url": "https://lensdump.com/i/joLC9c",
                "filename": "Raiders of the Lost Ark Version 4 [joLC9c].jpg",
                "debrid_url": None,
                "original_filename": "Raiders of the Lost Ark Version 4",
                "referer": "https://lensdump.com/i/joLC9c",
            },
        ],
        "count": 16,
    },
]