aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2021-08-19 03:10:32 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2021-08-19 03:10:58 +0530
commit58adec46773ee95be356daf88da7ac8a0ff1e703 (patch)
tree2bfcc8c2b21dca4dcf6864427aae8cd1017358c7 /yt_dlp/YoutubeDL.py
parent9e598870dd66f818c394bf08a57f2a8a497b83a6 (diff)
downloadhypervideo-pre-58adec46773ee95be356daf88da7ac8a0ff1e703.tar.lz
hypervideo-pre-58adec46773ee95be356daf88da7ac8a0ff1e703.tar.xz
hypervideo-pre-58adec46773ee95be356daf88da7ac8a0ff1e703.zip
Fix `extra_info` being reused across runs
Closes #727
Diffstat (limited to 'yt_dlp/YoutubeDL.py')
-rw-r--r--yt_dlp/YoutubeDL.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yt_dlp/YoutubeDL.py b/yt_dlp/YoutubeDL.py
index 62525cfb5..f180483a3 100644
--- a/yt_dlp/YoutubeDL.py
+++ b/yt_dlp/YoutubeDL.py
@@ -1254,7 +1254,7 @@ class YoutubeDL(object):
'extractor_key': ie.ie_key(),
})
- def process_ie_result(self, ie_result, download=True, extra_info={}):
+ def process_ie_result(self, ie_result, download=True, extra_info=None):
"""
Take the result of the ie(may be modified) and resolve all unresolved
references (URLs, playlist items).
@@ -1262,6 +1262,8 @@ class YoutubeDL(object):
It will also download the videos if 'download'.
Returns the resolved ie_result.
"""
+ if extra_info is None:
+ extra_info = {}
result_type = ie_result.get('_type', 'video')
if result_type in ('url', 'url_transparent'):