Invidious is an alternative front-end to YouTube
Fix detection of unavailable videos
Omar Rothcc956583fb70
diff --git a/src/invidious/videos.cr b/src/invidious/videos.crindex e1dff5aa..7d0c7838 100644--- a/src/invidious/videos.cr+++ b/src/invidious/videos.cr@@ -1178,7 +1178,7 @@ def fetch_video(id, region)endend- if info["errorcode"]?.try &.== "2" || !info["player_response"]+ if !info["player_response"]? || info["errorcode"]?.try &.== "2"raise "Video unavailable."end