oops
This commit is contained in:
parent
86b490bab1
commit
2ade81b3be
1 changed files with 1 additions and 1 deletions
2
app.py
2
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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue