mirror of
https://github.com/iv-org/invidious.git
synced 2024-06-07 19:40:52 +00:00
Fix detection of unavailable videos
This commit is contained in:
parent
14206efb09
commit
cc956583fb
@ -1178,7 +1178,7 @@ def fetch_video(id, region)
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
if info["errorcode"]?.try &.== "2" || !info["player_response"]
|
if !info["player_response"]? || info["errorcode"]?.try &.== "2"
|
||||||
raise "Video unavailable."
|
raise "Video unavailable."
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user