mirror of
https://gitea.invidious.io/iv-org/invidious-copy-2022-04-11.git
synced 2024-08-15 00:43:26 +00:00
Fix detection of unavailable videos
This commit is contained in:
parent
14206efb09
commit
cc956583fb
1 changed files with 1 additions and 1 deletions
|
@ -1178,7 +1178,7 @@ def fetch_video(id, region)
|
|||
end
|
||||
end
|
||||
|
||||
if info["errorcode"]?.try &.== "2" || !info["player_response"]
|
||||
if !info["player_response"]? || info["errorcode"]?.try &.== "2"
|
||||
raise "Video unavailable."
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue