summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOmar Roth <omarroth@hotmail.com>2019-03-26 13:46:07 -0500
committerOmar Roth <omarroth@hotmail.com>2019-03-26 13:46:07 -0500
commit9ac2ddcb4dc21f6d8c5aebce69d446bfb4fc9802 (patch)
tree48cecd8fed7752eb410235ce7f99fbcffe980869
parent8d9569e06b8419b748ff951f651b4254db29921e (diff)
downloadinvidious-9ac2ddcb4dc21f6d8c5aebce69d446bfb4fc9802.tar.gz
invidious-9ac2ddcb4dc21f6d8c5aebce69d446bfb4fc9802.tar.bz2
invidious-9ac2ddcb4dc21f6d8c5aebce69d446bfb4fc9802.zip
Fix premiere_timestamp without scheduledStartTime
-rw-r--r--src/invidious/videos.cr2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/invidious/videos.cr b/src/invidious/videos.cr
index 3e53ae7c..dc135aef 100644
--- a/src/invidious/videos.cr
+++ b/src/invidious/videos.cr
@@ -297,7 +297,7 @@ class Video
.try &.["liveStreamabilityRenderer"]?
.try &.["offlineSlate"]?
.try &.["liveStreamOfflineSlateRenderer"]?
- .try &.["scheduledStartTime"].as_s.to_i64
+ .try &.["scheduledStartTime"]?.try &.as_s.to_i64
end
if premiere_timestamp