diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.cr index 26d74f37..e1450abd 100644 --- a/src/invidious/videos/parser.cr +++ b/src/invidious/videos/parser.cr @@ -217,7 +217,7 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any views_txt ||= video_details["viewCount"]?.try &.as_s || "" views = views_txt.gsub(/\D/, "").to_i64? - length_txt = (microformat["lengthSeconds"]? || video_details["lengthSeconds"]) + length_txt = (microformat["lengthSeconds"]? || video_details["lengthSeconds"]?) .try &.as_s.to_i64 published = microformat["publishDate"]?