diff options
| author | Omar Roth <omarroth@hotmail.com> | 2019-03-26 13:46:07 -0500 |
|---|---|---|
| committer | Omar Roth <omarroth@hotmail.com> | 2019-03-26 13:46:07 -0500 |
| commit | 9ac2ddcb4dc21f6d8c5aebce69d446bfb4fc9802 (patch) | |
| tree | 48cecd8fed7752eb410235ce7f99fbcffe980869 | |
| parent | 8d9569e06b8419b748ff951f651b4254db29921e (diff) | |
| download | invidious-9ac2ddcb4dc21f6d8c5aebce69d446bfb4fc9802.tar.gz invidious-9ac2ddcb4dc21f6d8c5aebce69d446bfb4fc9802.tar.bz2 invidious-9ac2ddcb4dc21f6d8c5aebce69d446bfb4fc9802.zip | |
Fix premiere_timestamp without scheduledStartTime
| -rw-r--r-- | src/invidious/videos.cr | 2 |
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 |
