From dd95661352f4af699232c41c18240e986eac8abf Mon Sep 17 00:00:00 2001 From: MMaker Date: Thu, 27 Feb 2025 13:14:09 -0500 Subject: [PATCH] Handle deleted videos --- app.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index a2c14dc..c7bfa21 100644 --- a/app.py +++ b/app.py @@ -296,8 +296,8 @@ def proxy(video_id): return Response("Video not found", status=404) reason_code = params.get('reasonCode', '').upper() - if reason_code in ['HIDDEN_VIDEO']: - logger.warning(f"{video_id}: Video is hidden - returning 404") + if reason_code in ['HIDDEN_VIDEO', 'ADMINISTRATOR_DELETE_VIDEO']: + logger.warning(f"{video_id}: Video is hidden or deleted") return Response("Video not found", status=404) thumbnail_url = (