From 9ac2ddcb4dc21f6d8c5aebce69d446bfb4fc9802 Mon Sep 17 00:00:00 2001 From: Omar Roth Date: Tue, 26 Mar 2019 13:46:07 -0500 Subject: [PATCH] Fix premiere_timestamp without scheduledStartTime --- src/invidious/videos.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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