From d8da55520fd91d16a1c9ae3152ae82f4c283ae89 Mon Sep 17 00:00:00 2001 From: MMaker Date: Tue, 4 Mar 2025 10:22:54 -0500 Subject: [PATCH] Handle another reason code --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 98c8899..8e64f97 100644 --- a/app.py +++ b/app.py @@ -298,7 +298,7 @@ def proxy(video_id): return Response("Video not found", status=404) reason_code = params.get('reasonCode', '').upper() - if reason_code in ['HIDDEN_VIDEO', 'ADMINISTRATOR_DELETE_VIDEO']: + if reason_code in ['HIDDEN_VIDEO', 'ADMINISTRATOR_DELETE_VIDEO', 'RIGHT_HOLDER_DELETE_VIDEO']: logger.warning(f"{video_id}: Video is hidden or deleted ({reason_code}) - returning 404") return Response("Video not found", status=404)