From aa836a4f55adec625c799f0c2378741293b7a403 Mon Sep 17 00:00:00 2001 From: MMaker Date: Thu, 27 Feb 2025 10:48:46 -0500 Subject: [PATCH] oops --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 0aacf00..a2b3597 100644 --- a/app.py +++ b/app.py @@ -290,7 +290,7 @@ def proxy(video_id): video_width, video_height = get_video_resolution(params) if params else (None, None) download_allowed = allow_download(params) if params else False - request_user_agent = request.headers.get('User-Agent', '') + request_user_agent = request.headers.get('User-Agent', '').lower() if download_allowed and 'discordbot' not in request_user_agent: logger.info(f"Download ignored for video ID {video_id} due to user agent ({request_user_agent})") download_allowed = False