aboutsummaryrefslogtreecommitdiff
path: root/test/test_YoutubeDL.py
diff options
context:
space:
mode:
authorpukkandan <pukkandan.ytdlp@gmail.com>2022-01-03 19:06:26 +0530
committerpukkandan <pukkandan.ytdlp@gmail.com>2022-01-03 19:41:08 +0530
commitf46e2f9d929f395b32b52cdab93dde980a5ddaf1 (patch)
treefc6dbdfd626e74282879a088332ae33efb3aef74 /test/test_YoutubeDL.py
parent9c906919aed256fa900ba25b0387649cad3773e2 (diff)
Add key `requested_downloads` in the root `info_dict`
Diffstat (limited to 'test/test_YoutubeDL.py')
-rw-r--r--test/test_YoutubeDL.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_YoutubeDL.py b/test/test_YoutubeDL.py
index d2cc423d6..ef52d2069 100644
--- a/test/test_YoutubeDL.py
+++ b/test/test_YoutubeDL.py
@@ -30,6 +30,7 @@ class YDL(FakeYDL):
self.msgs = []
def process_info(self, info_dict):
+ info_dict = info_dict.copy()
info_dict.pop('__original_infodict', None)
self.downloaded_info_dicts.append(info_dict)
@@ -908,7 +909,7 @@ class TestYoutubeDL(unittest.TestCase):
def _match_entry(self, info_dict, incomplete=False):
res = super(FilterYDL, self)._match_entry(info_dict, incomplete)
if res is None:
- self.downloaded_info_dicts.append(info_dict)
+ self.downloaded_info_dicts.append(info_dict.copy())
return res
first = {