diff --git a/bot/workers/downloaders/dl_helpers.py b/bot/workers/downloaders/dl_helpers.py index a2797e3..8c0542f 100644 --- a/bot/workers/downloaders/dl_helpers.py +++ b/bot/workers/downloaders/dl_helpers.py @@ -128,7 +128,7 @@ async def get_leech_name(url): ): await asyncio.sleep(2) continue - if not download.total_length: + if not download.total_length and (not (ext := os.path.splitext(download.name)[1]) or "?" in ext)): await asyncio.sleep(2) continue