mirror of
https://github.com/iv-org/invidious.git
synced 2024-12-25 09:39:52 +05:30
Add fix for videos without keywords
This commit is contained in:
parent
c92f6e44e7
commit
d739ef8fd3
@ -263,7 +263,10 @@ class Video
|
|||||||
end
|
end
|
||||||
|
|
||||||
def keywords
|
def keywords
|
||||||
return self.player_response["videoDetails"]["keywords"].as_a
|
keywords = self.player_response["videoDetails"]["keywords"]?.try &.as_a
|
||||||
|
keywords ||= [] of String
|
||||||
|
|
||||||
|
return keywords
|
||||||
end
|
end
|
||||||
|
|
||||||
def fmt_stream(decrypt_function)
|
def fmt_stream(decrypt_function)
|
||||||
|
Loading…
Reference in New Issue
Block a user