Invidious is an alternative front-end to YouTube
Fetch data from next endpoint for scheduled streams
Samantaz Foxc8765385df16
diff --git a/src/invidious/videos.cr b/src/invidious/videos.crindex 19ee064c..50bb80c1 100644--- a/src/invidious/videos.cr+++ b/src/invidious/videos.cr@@ -914,7 +914,7 @@ def extract_video_info(video_id : String, proxy_region : String? = nil, context_params["shortDescription"] = player_response.dig?("videoDetails", "shortDescription") || JSON::Any.new(nil)# Don't fetch the next endpoint if the video is unavailable.- if !params["reason"]?+ if {"OK", "LIVE_STREAM_OFFLINE"}.any?(playability_status)next_response = YoutubeAPI.next({"videoId": video_id, "params": ""})player_response = player_response.merge(next_response)end