mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-07 20:30:41 -05:00
parent
3aa915400d
commit
8d93e69d67
1 changed files with 3 additions and 2 deletions
|
@ -2735,8 +2735,9 @@ def format_tmpl(tmpl):
|
||||||
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}')
|
||||||
with io.open(filename, 'a', encoding='utf-8') as f:
|
if self._ensure_dir_exists(filename):
|
||||||
f.write(self.evaluate_outtmpl(tmpl, info_copy) + '\n')
|
with io.open(filename, 'a', encoding='utf-8') as f:
|
||||||
|
f.write(self.evaluate_outtmpl(tmpl, info_copy) + '\n')
|
||||||
|
|
||||||
def __forced_printings(self, info_dict, filename, incomplete):
|
def __forced_printings(self, info_dict, filename, incomplete):
|
||||||
def print_mandatory(field, actual_field=None):
|
def print_mandatory(field, actual_field=None):
|
||||||
|
|
Loading…
Reference in a new issue