summaryrefslogtreecommitdiffstats
path: root/src/invidious.cr
diff options
context:
space:
mode:
authorOmar Roth <omarroth@protonmail.com>2019-06-08 10:18:45 -0500
committerOmar Roth <omarroth@protonmail.com>2019-06-08 10:18:45 -0500
commitef8c9f093c0b6ea4b68b116d683e8d7f045ccd66 (patch)
treee910439f3584febb1c45bcd17e9c7cd651d4a84d /src/invidious.cr
parent801dffd571ea9b0789da00fd0cfb2aae70e4e352 (diff)
downloadinvidious-ef8c9f093c0b6ea4b68b116d683e8d7f045ccd66.tar.gz
invidious-ef8c9f093c0b6ea4b68b116d683e8d7f045ccd66.tar.bz2
invidious-ef8c9f093c0b6ea4b68b116d683e8d7f045ccd66.zip
Add premiere date to watch page
Diffstat (limited to 'src/invidious.cr')
-rw-r--r--src/invidious.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious.cr b/src/invidious.cr
index 63c44177..2ea2c518 100644
--- a/src/invidious.cr
+++ b/src/invidious.cr
@@ -519,7 +519,7 @@ get "/watch" do |env|
engagement = ((video.dislikes.to_f + video.likes.to_f)/video.views * 100)
playability_status = video.player_response["playabilityStatus"]?
- if playability_status && playability_status["status"] == "LIVE_STREAM_OFFLINE"
+ if playability_status && playability_status["status"] == "LIVE_STREAM_OFFLINE" && !video.premiere_timestamp
reason = playability_status["reason"]?.try &.as_s
end
reason ||= ""