mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-14 05:03:09 +00:00
Fix --flat-playlist
when neither IE nor id is known
This commit is contained in:
parent
28234287f1
commit
360167b9fc
@ -1308,7 +1308,7 @@ class YoutubeDL(object):
|
|||||||
or extract_flat is True):
|
or extract_flat is True):
|
||||||
info_copy = ie_result.copy()
|
info_copy = ie_result.copy()
|
||||||
ie = try_get(ie_result.get('ie_key'), self.get_info_extractor)
|
ie = try_get(ie_result.get('ie_key'), self.get_info_extractor)
|
||||||
if not ie_result.get('id'):
|
if ie and not ie_result.get('id'):
|
||||||
info_copy['id'] = ie.get_temp_id(ie_result['url'])
|
info_copy['id'] = ie.get_temp_id(ie_result['url'])
|
||||||
self.add_default_extra_info(info_copy, ie, ie_result['url'])
|
self.add_default_extra_info(info_copy, ie, ie_result['url'])
|
||||||
self.add_extra_info(info_copy, extra_info)
|
self.add_extra_info(info_copy, extra_info)
|
||||||
|
Loading…
Reference in New Issue
Block a user