mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2023-06-08.git
synced 2024-08-15 00:53:38 +00:00
Fix handling for video content warnings
This commit is contained in:
parent
ff5d79e3ee
commit
0321dda1d7
1 changed files with 1 additions and 1 deletions
|
@ -1179,7 +1179,7 @@ def fetch_video(id, region)
|
|||
raise "Video unavailable."
|
||||
end
|
||||
|
||||
if info["reason"]?
|
||||
if info["reason"]? && !info["player_response"]["videoDetails"]?
|
||||
raise info["reason"]
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue