mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 13:36:35 +00:00
Use the shorter paths.get
to test for any value
This commit is contained in:
parent
2bf4af7920
commit
3940487c1c
@ -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 user_set('infojson', paths, '') else '',
|
||||
infojson='%(id)s.%(ext)s' if paths.get('infojson') else '',
|
||||
pl_infojson=f'{cache_directory_path}/infojson/playlist/{playlist_infojson}.%(ext)s',
|
||||
)
|
||||
for k in OUTTMPL_TYPES.keys():
|
||||
|
Loading…
Reference in New Issue
Block a user