mirror of
https://github.com/ytdl-org/youtube-dl
synced 2024-11-18 11:30:11 +09:00
[core] Fix format string injection for metadata JSON filename message.
This commit is contained in:
parent
b1bbc1e502
commit
be008e657d
@ -2635,12 +2635,12 @@ class YoutubeDL(object):
|
|||||||
self.to_screen(msg('[info] %s is already present', label.title()))
|
self.to_screen(msg('[info] %s is already present', label.title()))
|
||||||
return 'exists'
|
return 'exists'
|
||||||
else:
|
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:
|
try:
|
||||||
write_json_file(self.filter_requested_info(info_dict), infofn)
|
write_json_file(self.filter_requested_info(info_dict), infofn)
|
||||||
return True
|
return True
|
||||||
except (OSError, IOError):
|
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
|
return
|
||||||
|
|
||||||
def _write_thumbnails(self, info_dict, filename):
|
def _write_thumbnails(self, info_dict, filename):
|
||||||
|
Loading…
Reference in New Issue
Block a user