Slugify filenames when metadata found on Spotify too (#265)

This commit is contained in:
Ritiek Malhotra
2018-05-20 15:18:45 +05:30
committed by GitHub
parent c885c9eff0
commit 9b181df77e
3 changed files with 18 additions and 7 deletions

View File

@@ -134,7 +134,9 @@ def download_single(raw_song, number=None):
songname = content.title
if meta_tags is not None:
refined_songname = internals.format_string(const.args.file_format, meta_tags)
refined_songname = internals.format_string(const.args.file_format,
meta_tags,
slugification=True)
log.debug('Refining songname from "{0}" to "{1}"'.format(songname, refined_songname))
if not refined_songname == ' - ':
songname = refined_songname