summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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