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Ä….'}