mirror of
https://github.com/meeb/tubesync.git
synced 2025-04-13 00:43:50 +00:00
Avoid the KeyError
when it is not set
This commit is contained in:
parent
b3ec8069ee
commit
993fdc2503
@ -179,7 +179,7 @@ def get_media_info(url, /, *, days=None, info_json=None):
|
||||
playlist_infojson = 'postprocessor_[%(id)s]_%(n_entries)d_%(playlist_count)d_temp'
|
||||
outtmpl = dict(
|
||||
default='',
|
||||
infojson='%(id)s.%(ext)s' if paths['infojson'] else '',
|
||||
infojson='%(id)s.%(ext)s' if user_set('infojson', paths, '') else '',
|
||||
pl_infojson=f'{cache_directory_path}/infojson/playlist/{playlist_infojson}.%(ext)s',
|
||||
)
|
||||
for k in OUTTMPL_TYPES.keys():
|
||||
|
Loading…
x
Reference in New Issue
Block a user