[Pykaraoke-discuss] Patch to pykdb.py for non-ascii characters in file/directory paths
Brought to you by:
kelvinl
|
From: Georg L. <jor...@at...> - 2016-11-20 00:40:59
|
Hello!
I have been using the Debian packaged PyKaraoke for conversion of MP3+G
files according to the recipe at:
http://toby.ink/blog/2014/06/14/mp3-plus-g-to-mp4/
Any files with 'ñ' in the file path would not be converted and an
exception thrown.
The problem seems to be around line 480 in pykdb.py, where neither 'dir'
nor 'self.Filepath' is unicode()-ed. 'dir' is later os.path.join()-ed
with unicode()-ed 'file' and then compared with 'self.Filepath'.
The attached patch fixes the problem for me.
Best Regards,
Georg Lehner
|