mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-12-18 15:15:42 +07:00
[youtube] Do not break upon unknown formats
This commit is contained in:
@@ -1290,7 +1290,8 @@ def _map_to_format_list(urlmap):
|
|||||||
'url': video_real_url,
|
'url': video_real_url,
|
||||||
'player_url': player_url,
|
'player_url': player_url,
|
||||||
}
|
}
|
||||||
dct.update(self._formats[itag])
|
if itag in self._formats:
|
||||||
|
dct.update(self._formats[itag])
|
||||||
formats.append(dct)
|
formats.append(dct)
|
||||||
return formats
|
return formats
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user