Skip to content

Commit

Permalink
[core] Fix format string injection for metadata JSON filename message.
Browse files Browse the repository at this point in the history
  • Loading branch information
mk-pmb authored and dirkf committed Dec 6, 2023
1 parent b1bbc1e commit be008e6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube_dl/YoutubeDL.py
Original file line number Diff line number Diff line change
Expand Up @@ -2635,12 +2635,12 @@ def msg(fmt, lbl):
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):
Expand Down

0 comments on commit be008e6

Please sign in to comment.