mirror of
https://github.com/iv-org/invidious.git
synced 2026-01-27 23:38:28 -06:00
Don't assume the isShortsEligible is always availble
This commit is contained in:
parent
ea8e3b7d22
commit
073396ce33
@ -218,7 +218,7 @@ def parse_video_info(video_id : String, player_response : Hash(String, JSON::Any
|
|||||||
post_live_dvr = video_details.dig?("isPostLiveDvr")
|
post_live_dvr = video_details.dig?("isPostLiveDvr")
|
||||||
.try &.as_bool || false
|
.try &.as_bool || false
|
||||||
|
|
||||||
is_short = microformat["isShortsEligible"].try &.as_bool || false
|
is_short = microformat.dig?("isShortsEligible").try &.as_bool || false
|
||||||
|
|
||||||
# Extra video infos
|
# Extra video infos
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user