Skip to content

Commit

Permalink
[FIX] Decode playlist name
Browse files Browse the repository at this point in the history
  • Loading branch information
flyingrub committed Apr 23, 2016
1 parent 90185ea commit 1c7fc64
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scdl/scdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,8 @@ def download_playlist(playlist):
"""
global offset
invalid_chars = '\/:*?|<>"'
playlist_name = playlist['title'].encode('utf-8', 'ignore').decode('utf-8')
playlist_name = playlist['title'].encode('utf-8', 'ignore')
playlist_name = playlist_name.decode(sys.stdout.encoding)
playlist_name = ''.join(c for c in playlist_name if c not in invalid_chars)

if not os.path.exists(playlist_name):
Expand Down

0 comments on commit 1c7fc64

Please sign in to comment.