Fix detection of unavailable videos

pull/675/head
Omar Roth 5 years ago
parent 14206efb09
commit cc956583fb
No known key found for this signature in database
GPG Key ID: B8254FB7EC3D37F2

@ -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…
Cancel
Save