mirror of
https://github.com/nims11/IPod-Shuffle-4g.git
synced 2025-12-07 16:08:00 +09:00
utf encode playlist names, fixes #35
This commit is contained in:
parent
e5322ce9f8
commit
78ecedd8d5
2 changed files with 3 additions and 0 deletions
|
|
@ -545,6 +545,8 @@ class Playlist(Record):
|
|||
text = os.path.splitext(os.path.basename(filename))[0]
|
||||
|
||||
# Handle the VoiceOverData
|
||||
if isinstance(text, unicode):
|
||||
text = text.encode('utf-8', 'ignore')
|
||||
self["dbid"] = hashlib.md5(text).digest()[:8] #pylint: disable-msg=E1101
|
||||
self.text_to_speech(text, self["dbid"], True)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue