mirror of
https://git.sr.ht/~cadence/NewLeaf
synced 2024-11-21 23:27:29 +00:00
Don't fail if captions field is missing
This commit is contained in:
parent
be8a2dad5f
commit
5125bb9461
@ -285,6 +285,7 @@ def get_more_stuff_from_file(id, result):
|
||||
f["qualityLabel"] = label
|
||||
f["second__order"] = format_order(f)
|
||||
|
||||
if "captions" in player_response:
|
||||
for track in player_response["captions"]["playerCaptionsTracklistRenderer"]["captionTracks"]:
|
||||
# safely editing the track format by taking apart the url...
|
||||
url = track["baseUrl"]
|
||||
|
Loading…
Reference in New Issue
Block a user