From 86b490bab13dae47f5dac54c7ed82f17f9cbf07d Mon Sep 17 00:00:00 2001 From: MMaker Date: Thu, 27 Feb 2025 15:33:07 -0500 Subject: [PATCH] fix --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index ac8f47e..055a97a 100644 --- a/app.py +++ b/app.py @@ -330,8 +330,8 @@ def proxy(video_id): logger.error(f"{video_id}: Failed to fetch data") return Response("Video not found", status=404) - reason_code = params.get('reasonCode', '').upper() - if reason_code in ['HIDDEN_VIDEO', 'ADMINISTRATOR_DELETE_VIDEO']: + reason_code = params.get('reasonCode') + if ('' or reason_code).upper() in ['HIDDEN_VIDEO', 'ADMINISTRATOR_DELETE_VIDEO']: logger.warning(f"{video_id}: Video is hidden or deleted ({reason_code}) - returning 404") return Response("Video not found", status=404)