aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormk-pmb <mk-pmb@users.noreply.github.com>2023-09-13 20:57:05 +0200
committerdirkf <fieldhouse@gmx.net>2023-12-06 02:45:41 +0000
commitbe008e657d79832642e2158557c899249c9e31cd (patch)
tree5d99c5b97c1cf1141e3111d96a336fdcecc52b66
parentb1bbc1e50277e240419eb1308e444ac8a5da4320 (diff)
downloadyoutube-dl-be008e657d79832642e2158557c899249c9e31cd.tar.xz
[core] Fix format string injection for metadata JSON filename message.
-rwxr-xr-xyoutube_dl/YoutubeDL.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/YoutubeDL.py b/youtube_dl/YoutubeDL.py
index 13a41928f..6f2aba5ac 100755
--- a/youtube_dl/YoutubeDL.py
+++ b/youtube_dl/YoutubeDL.py
@@ -2635,12 +2635,12 @@ class YoutubeDL(object):
self.to_screen(msg('[info] %s is already present', label.title()))
return 'exists'
else:
- self.to_screen(msg('[info] Writing %s as JSON to: ' + infofn, label))
+ self.to_screen(msg('[info] Writing %s as JSON to: ', label) + infofn)
try:
write_json_file(self.filter_requested_info(info_dict), infofn)
return True
except (OSError, IOError):
- self.report_error(msg('Cannot write %s to JSON file ' + infofn, label))
+ self.report_error(msg('Cannot write %s to JSON file ', label) + infofn)
return
def _write_thumbnails(self, info_dict, filename):