rembo10 / headphones

Automatic music downloader for SABnzbd
GNU General Public License v3.0
3.36k stars 602 forks source link

new issue on post processing #3199

Open dorel14 opened 5 years ago

dorel14 commented 5 years ago

Hello I have this error when post processing Uncaught exception: Traceback (most recent call last): File "/opt/headphones/headphones/logger.py", line 214, in new_run old_run(*args, **kwargs) File "/usr/lib/python2.7/threading.py", line 754, in run self.__target(*self.__args, **self.__kwargs) File "/opt/headphones/headphones/postprocessor.py", line 1251, in forcePostProcess forced=True, keep_original_folder=keep_original_folder) File "/opt/headphones/headphones/postprocessor.py", line 307, in verify keep_original_folder, forced, single) File "/opt/headphones/headphones/postprocessor.py", line 474, in doPostProcessing albumpaths = moveFiles(albumpath, release, metadata_dict) File "/opt/headphones/headphones/postprocessor.py", line 917, in moveFiles temp_f.decode(headphones.SYS_ENCODING, 'replace'), e) File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeEncodeError: 'ascii' codec can't encode character u'\xee' in position 13: ordinal not in range(128)

Jo0 commented 4 years ago

Same here, but it's obviously the JP character unicode stuff. I thought this was fixed back in https://github.com/rembo10/headphones/issues/179

2019-11-10 20:45:04 ERROR Uncaught exception: Traceback (most recent call last): File "/usr/pbi/headphones-amd64/share/headphones/headphones/headphones/logger.py", line 214, in new_run old_run(*args, *kwargs) File "/usr/pbi/headphones-amd64/lib/python2.7/threading.py", line 763, in run self.__target(self.args, **self.kwargs) File "/usr/pbi/headphones-amd64/share/headphones/headphones/headphones/postprocessor.py", line 1298, in forcePostProcess verify(release['AlbumID'], folder, forced=True, keep_original_folder=keep_original_folder) File "/usr/pbi/headphones-amd64/share/headphones/headphones/headphones/postprocessor.py", line 307, in verify keep_original_folder, forced, single) File "/usr/pbi/headphones-amd64/share/headphones/headphones/headphones/postprocessor.py", line 474, in doPostProcessing albumpaths = moveFiles(albumpath, release, metadata_dict) File "/usr/pbi/headphones-amd64/share/headphones/headphones/headphones/postprocessor.py", line 917, in moveFiles temp_f.decode(headphones.SYS_ENCODING, 'replace'), e) File "/usr/pbi/headphones-amd64/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True)UnicodeEncodeError: 'ascii' codec can't encode characters in position 7-21: ordinal not in range(128)
2019-11-10 20:45:04 INFO Moving "/tmp/headphones東京スカパラダイスオーケストラ - Paradise Blue@hp@_IjKhu8/headphones/23 東京スカパラダイスオーケストラ - Paradise Blue [2009] - Theme From Godfather.flac" to "/Music/東京スカパラダイスオーケストラ/Paradise Blue [2009]/23 東京スカパラダイスオーケストラ - Paradise Blue [2009] - Theme From Godfather.flac"
2019-11-10 20:45:04 INFO Moving "/tmp/headphones東京スカパラダイスオーケストラ - Paradise Blue@hp@_IjKhu8/headphones/20 東京スカパラダイスオーケストラ - Paradise Blue [2009] - Latin Scorcher.flac" to "/Music/東京スカパラダイスオーケストラ/Paradise Blue [2009]/20 東京スカパラダイスオーケストラ - Paradise Blue [2009] - Latin Scorcher.flac"