summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChunky programmer <78101139+ChunkyProgrammer@users.noreply.github.com>2023-06-07 09:55:09 -0400
committerChunky programmer <78101139+ChunkyProgrammer@users.noreply.github.com>2023-06-07 11:32:20 -0400
commit233bd3f593c6311fb524b584a4d0da42f9ff558e (patch)
tree2ba74e8f372bd2be8c605c4e10fbe37d144571fc /src
parent545a5937d87d31622e87bb2ba8151f8aecd66c81 (diff)
downloadinvidious-233bd3f593c6311fb524b584a4d0da42f9ff558e.tar.gz
invidious-233bd3f593c6311fb524b584a4d0da42f9ff558e.tar.bz2
invidious-233bd3f593c6311fb524b584a4d0da42f9ff558e.zip
Watch: Load watch page data for premieres
Diffstat (limited to 'src')
-rw-r--r--src/invidious/videos.cr4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr
index 0038a97a..f38b33e5 100644
--- a/src/invidious/videos.cr
+++ b/src/invidious/videos.cr
@@ -394,7 +394,9 @@ def fetch_video(id, region)
if reason = info["reason"]?
if reason == "Video unavailable"
raise NotFoundException.new(reason.as_s || "")
- else
+ elsif !reason.as_s.starts_with? "Premieres"
+ # dont error when it's a premiere.
+ # we already parsed most of the data and display the premiere date
raise InfoException.new(reason.as_s || "")
end
end