mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-13 22:00:33 +05:30
Add fix for videos that don't have videoDetails
This commit is contained in:
parent
92223dbee5
commit
58fb74179b
@ -263,7 +263,7 @@ class Video
|
|||||||
end
|
end
|
||||||
|
|
||||||
def keywords
|
def keywords
|
||||||
keywords = self.player_response["videoDetails"]["keywords"]?.try &.as_a
|
keywords = self.player_response["videoDetails"]?.try &.["keywords"]?.try &.as_a
|
||||||
keywords ||= [] of String
|
keywords ||= [] of String
|
||||||
|
|
||||||
return keywords
|
return keywords
|
||||||
|
Loading…
Reference in New Issue
Block a user