mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-01-02 17:21:40 +00:00
[youtube] Do not break upon unknown formats
This commit is contained in:
parent
629be17af4
commit
0b65e5d40f
1 changed files with 2 additions and 1 deletions
|
@ -1290,6 +1290,7 @@ def _map_to_format_list(urlmap):
|
||||||
'url': video_real_url,
|
'url': video_real_url,
|
||||||
'player_url': player_url,
|
'player_url': player_url,
|
||||||
}
|
}
|
||||||
|
if itag in self._formats:
|
||||||
dct.update(self._formats[itag])
|
dct.update(self._formats[itag])
|
||||||
formats.append(dct)
|
formats.append(dct)
|
||||||
return formats
|
return formats
|
||||||
|
|
Loading…
Reference in a new issue