PTPAPI
PTPAPI copied to clipboard
Unicode not supported
Noticed number of times python code complains when it encounters UTF-8 characters in the file names.
INFO:ptp-reseed:Starting reseed attempt on file /volume1/Movies/TZ/¡Vivan las Antipodas! (2011)
Traceback (most recent call last):
File "/usr/local/bin/ptp-reseed", line 10, in
This should be fixed in the latest develop branch, can you confirm?
Not sure I upgraded it properly .... did "pip install -U https://github.com/kannibalox/PTPAPI/archive/master.zip" hoping it would upgrade components.
Anyway if it did upgrade it then it is not fixed.
INFO:ptp-reseed:Starting reseed attempt on file "/volume1/Movies/AE/8QK841~2"
INFO:ptpapi.scripts.ptp_reseed:Searching movies by file list
INFO:ptpapi.scripts.ptp_reseed:Guessing name from filepath with guessit
ERROR:ptp-reseed:Could not find an associated torrent for '/volume1/Movies/AE/8QK841~2', cannot reseed
Traceback (most recent call last):
File "/usr/local/bin/ptp-reseed", line 10, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/ptpapi/scripts/ptp_reseed.py", line 301, in main
logger.info(u'Starting reseed attempt on file "{0}"'.format(filename))
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 20: ordinal not in range(128)
On Sun, Oct 13, 2019 at 10:21 AM kannibalox [email protected] wrote:
This should be fixed in the latest develop branch, can you confirm?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/kannibalox/PTPAPI/issues/7?email_source=notifications&email_token=AGARIWIMD4CKOHEZKEW5AM3QOKA3LA5CNFSM4IYRQJV2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBCMTSQ#issuecomment-541379018, or unsubscribe https://github.com/notifications/unsubscribe-auth/AGARIWNLQWEFZHS5P5WESDLQOKA3LANCNFSM4IYRQJVQ .
I can probably fix that bug, but I have strong doubts about this script being able to effectively match anything against samba-mangled filenames.
There shouldn't be any unicode errors anymore, feel free to re-open with examples if you're still encountering them.