From 073396ce3387441155ec3270a1386e8a3b01229c Mon Sep 17 00:00:00 2001 From: Harm Date: Sat, 24 Jan 2026 23:00:18 +0100 Subject: [PATCH] Don't assume the isShortsEligible is always availble --- src/invidious/videos/parser.cr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/invidious/videos/parser.cr b/src/invidious/videos/parser.cr index 2f55128a8..7f6d39e6f 100644 --- a/src/invidious/videos/parser.cr +++ b/src/invidious/videos/parser.cr @@ -218,7 +218,7 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any post_live_dvr = video_details.dig?("isPostLiveDvr") .try &.as_bool || false - is_short = microformat["isShortsEligible"].try &.as_bool || false + is_short = microformat.dig?("isShortsEligible").try &.as_bool || false # Extra video infos