diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2022-07-14 17:56:53 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2022-07-14 17:56:53 +0200 |
| commit | c8765385df16fff90cff82e1ed1e2056a4bc0ac3 (patch) | |
| tree | d22bfeeb82041f3bfe30925caeba0edffba93556 | |
| parent | 0ed22c0be0a26cc4ff54a4c55ed704e9bfbd4fea (diff) | |
| download | invidious-c8765385df16fff90cff82e1ed1e2056a4bc0ac3.tar.gz invidious-c8765385df16fff90cff82e1ed1e2056a4bc0ac3.tar.bz2 invidious-c8765385df16fff90cff82e1ed1e2056a4bc0ac3.zip | |
Fetch data from next endpoint for scheduled streams
| -rw-r--r-- | src/invidious/videos.cr | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr index 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 |
