From c188c515e21fae8492d8cac3c20c8b89bca0c754 Mon Sep 17 00:00:00 2001 From: Patryk Mazur Date: Wed, 22 Apr 2026 20:52:00 +0200 Subject: [PATCH] Send cached V1.0.8 --- bot/utils/helpers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bot/utils/helpers.py b/bot/utils/helpers.py index d26e445..bb7603b 100644 --- a/bot/utils/helpers.py +++ b/bot/utils/helpers.py @@ -24,6 +24,7 @@ def rotate_downloads(downloads_dir: str): def download_video(yt_url: str) -> dict: + yt_url = yt_url.split('&')[0] MAX_DUR = os.getenv('MAX_DURATION') if not MAX_DUR.isnumeric(): return {'status': 'error', 'message': f'MAX_DUR: "{MAX_DUR}" - nie jest cyfrÄ….'}