aboutsummaryrefslogtreecommitdiff
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-05-20 18:02:58 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-05-20 18:02:58 +0530
commit28b0eb0f65fa48f44cf40b202fdfdcd7a7e957a6 (patch)
tree1546eb1adb5e31456d8de9505cf28c25de9937b9 /yt_dlp/YoutubeDL.py
parent95131b2176bbfcc070aa0d35845ed02987516ea1 (diff)
[cleanup] See desc
* Remove struct from `embedthumbnail` * Use bullet lists in readme where numbered list don't make sense * Fix error introduced in 9c2b75b5616f058c3970e54c664e9543f86b9f0c when `ie_result` is `None`
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 9a2d0abc2..61c45fd8c 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -1188,7 +1188,7 @@ class YoutubeDL(object):
if result_type == 'video':
self.add_extra_info(ie_result, extra_info)
ie_result = self.process_video_result(ie_result, download=download)
- additional_urls = ie_result.get('additional_urls')
+ additional_urls = (ie_result or {}).get('additional_urls')
if additional_urls:
# TODO: Improve MetadataFromFieldPP to allow setting a list
if isinstance(additional_urls, compat_str):