1
0
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:
tcely 2025-03-31 15:12:22 -04:00 committed by GitHub
parent b3ec8069ee
commit 993fdc2503
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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():