]> jfr.im git - yt-dlp.git/blobdiff - yt_dlp/__init__.py
[core] Fix `--compat-opt allow-unsafe-ext` (#10336)
[yt-dlp.git] / yt_dlp / __init__.py
index f88f15d70ceca58b5d260c75d0eb15889ae00ec2..0e48569e33785091fabc4d6da509d6c3b372987b 100644 (file)
@@ -599,7 +599,7 @@ def report_deprecation(val, old, new=None):
         warnings.append(
             'Using allow-unsafe-ext opens you up to potential attacks. '
             'Use with great care!')
-        _UnsafeExtensionError.sanitize_extension = lambda x: x
+        _UnsafeExtensionError.sanitize_extension = lambda x, prepend=False: x
 
     return warnings, deprecation_warnings