parent
e107c2b8cf
commit
efa944f4bc
11 changed files with 18 additions and 19 deletions
|
|
@ -1068,7 +1068,7 @@ class YoutubeDL:
|
|||
# correspondingly that is not what we want since we need to keep
|
||||
# '%%' intact for template dict substitution step. Working around
|
||||
# with boundary-alike separator hack.
|
||||
sep = ''.join([random.choice(ascii_letters) for _ in range(32)])
|
||||
sep = ''.join(random.choices(ascii_letters, k=32))
|
||||
outtmpl = outtmpl.replace('%%', f'%{sep}%').replace('$$', f'${sep}$')
|
||||
|
||||
# outtmpl should be expand_path'ed before template dict substitution
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue