Fix EncodingError on music_file with special chars

This commit is contained in:
Ritiek Malhotra
2017-06-04 13:13:54 +05:30
committed by GitHub
parent 18ea897dff
commit 0e915e3637

View File

@@ -117,7 +117,8 @@ def getYouTubeTitle(content, number):
def generateFileName(content):
title = (content.title).replace(' ', '_')
return slugify(title, ok='-_()[]{}', lower=False)
title = slugify(title, ok='-_()[]{}', lower=False)
return fixEncoding(title)
def downloadSong(content):