mirror of https://github.com/yt-dlp/yt-dlp.git
parent
3aa915400d
commit
8d93e69d67
|
@ -2735,6 +2735,7 @@ class YoutubeDL(object):
|
||||||
filename = self.evaluate_outtmpl(file_tmpl, info_dict)
|
filename = self.evaluate_outtmpl(file_tmpl, info_dict)
|
||||||
tmpl = format_tmpl(tmpl)
|
tmpl = format_tmpl(tmpl)
|
||||||
self.to_screen(f'[info] Writing {tmpl!r} to: {filename}')
|
self.to_screen(f'[info] Writing {tmpl!r} to: {filename}')
|
||||||
|
if self._ensure_dir_exists(filename):
|
||||||
with io.open(filename, 'a', encoding='utf-8') as f:
|
with io.open(filename, 'a', encoding='utf-8') as f:
|
||||||
f.write(self.evaluate_outtmpl(tmpl, info_copy) + '\n')
|
f.write(self.evaluate_outtmpl(tmpl, info_copy) + '\n')
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue