about summary refs log tree commit diff
path: root/youtube_dl/YoutubeDL.py
diff options
context:
space:
mode:
authordirkf <fieldhouse@gmx.net>2023-04-06 14:11:18 +0100
committerdirkf <fieldhouse@gmx.net>2023-04-06 14:56:55 +0100
commitd6ae3b77cd50083ef245c28f904ee0b70a77d5c6 (patch)
tree222a1a805755f0321811209f9e101416a47700f4 /youtube_dl/YoutubeDL.py
parent9f4d83ff4255d8840c0fa9b367722c129ebecdb2 (diff)
downloadyoutube-dl-d6ae3b77cd50083ef245c28f904ee0b70a77d5c6.tar.gz
youtube-dl-d6ae3b77cd50083ef245c28f904ee0b70a77d5c6.tar.xz
youtube-dl-d6ae3b77cd50083ef245c28f904ee0b70a77d5c6.zip
[core] Avoid deepcopy of ctx dict (fix f35b757)
* may now contain `LazyList`s
* resolves #31999
Diffstat (limited to 'youtube_dl/YoutubeDL.py')
-rwxr-xr-xyoutube_dl/YoutubeDL.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index bcf781744..2c0d4926c 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -1399,7 +1399,7 @@ class YoutubeDL(object):
             filters = [self._build_format_filter(f) for f in selector.filters]
 
             def final_selector(ctx):
-                ctx_copy = copy.deepcopy(ctx)
+                ctx_copy = dict(ctx)
                 for _filter in filters:
                     ctx_copy['formats'] = list(filter(_filter, ctx_copy['formats']))
                 return selector_function(ctx_copy)