From 2ade81b3beaa70773d40efabe8be6d7776fdd869 Mon Sep 17 00:00:00 2001 From: MMaker Date: Thu, 27 Feb 2025 15:35:38 -0500 Subject: [PATCH] oops --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 055a97a..417a311 100644 --- a/app.py +++ b/app.py @@ -331,7 +331,7 @@ def proxy(video_id): return Response("Video not found", status=404) reason_code = params.get('reasonCode') - if ('' or reason_code).upper() in ['HIDDEN_VIDEO', 'ADMINISTRATOR_DELETE_VIDEO']: + if (reason_code or '').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)