mirror of
https://github.com/iv-org/invidious
synced 2024-11-10 21:23:34 +01:00
Fix handling for video content warnings
This commit is contained in:
parent
ff5d79e3ee
commit
0321dda1d7
@ -1179,7 +1179,7 @@ def fetch_video(id, region)
|
|||||||
raise "Video unavailable."
|
raise "Video unavailable."
|
||||||
end
|
end
|
||||||
|
|
||||||
if info["reason"]?
|
if info["reason"]? && !info["player_response"]["videoDetails"]?
|
||||||
raise info["reason"]
|
raise info["reason"]
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user