diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-09-27 11:24:22 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-09-27 11:29:17 +0530 |
commit | 360167b9fca07cb870038b12112a611b9e872ffe (patch) | |
tree | 3bcf27167d2c60bd27d127ebbbfa5de878e5f119 /yt_dlp/YoutubeDL.py | |
parent | 28234287f17e5751a15d33e3fe6fea2c8e697799 (diff) | |
download | hypervideo-pre-360167b9fca07cb870038b12112a611b9e872ffe.tar.lz hypervideo-pre-360167b9fca07cb870038b12112a611b9e872ffe.tar.xz hypervideo-pre-360167b9fca07cb870038b12112a611b9e872ffe.zip |
Fix `--flat-playlist` when neither IE nor id is known
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r-- | yt_dlp/YoutubeDL.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py index 1cbe8dc8d..367d3fa60 100644 --- a/yt_dlp/YoutubeDL.py +++ b/yt_dlp/YoutubeDL.py @@ -1308,7 +1308,7 @@ class YoutubeDL(object): or extract_flat is True): info_copy = ie_result.copy() 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']) self.add_default_extra_info(info_copy, ie, ie_result['url']) self.add_extra_info(info_copy, extra_info) |