diff options
| author | Samantaz Fox <coding@samantaz.fr> | 2023-06-11 16:05:32 +0200 |
|---|---|---|
| committer | Samantaz Fox <coding@samantaz.fr> | 2023-06-11 16:05:32 +0200 |
| commit | 46ea22f75c601cc3c408352725fc3c1eabd30d26 (patch) | |
| tree | 322889ef0516ccd69f6a4a0ce175dc783fdf19b8 /src | |
| parent | 68c26563fc30c58f611af02c6e6fe0482d8725af (diff) | |
| parent | 233bd3f593c6311fb524b584a4d0da42f9ff558e (diff) | |
| download | invidious-46ea22f75c601cc3c408352725fc3c1eabd30d26.tar.gz invidious-46ea22f75c601cc3c408352725fc3c1eabd30d26.tar.bz2 invidious-46ea22f75c601cc3c408352725fc3c1eabd30d26.zip | |
Watch: Load watch page data for premieres (#3866)
Diffstat (limited to 'src')
| -rw-r--r-- | src/invidious/videos.cr | 4 |
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 |
