diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index e1dff5aa1..7d0c7838d 100644 --- a/src/invidious/videos.cr +++ b/src/invidious/videos.cr @@ -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