Closed m0n4 closed 6 years ago
Just a hunch, try changing these lines: files = os.listdir(path.encode('utf-8')) shutil.move(src.encode('utf-8'), dst.encode('utf-8'))
Thanks GammaC0de
It doesn't work :
'ascii' codec can't decode byte 0x92 in position 16: ordinal not in range(128)
Maybe I could make it call a batch script ?
If you are going to use a batch script then you do not need the python script..
Also, try to download with a pure ASCII (English) file name.
Thank you again GammaC0de ! if it could help someone: (please note that Vidéos becomes Vid‚os)
ECHO off
robocopy /MOVE /s C:\Users\user\Downloads\PyLoad\ "\\FREEBOX_SERVER\Disque dur\Vid‚os\Pyload" /XD
Hello
I've an issue with a selfmade ExternalScripts, I'm sure it'll be obvious to you, but I can't do it alone.
14.04.2018 19:38:50 INFO Package finished: mypackage 14.04.2018 19:38:50 INFO ADDON ExtractArchive: Check package: mypackage 14.04.2018 19:38:50 INFO ADDON ExternalScripts: Executing scripts in folder>, (), 'ascii' codec can't decode byte 0x92 in position 16: ordinal not in range(128)
all_downloads_processed
... 14.04.2018 19:38:50 INFO ADDON ExtractArchive: No files found to extract 14.04.2018 19:38:50 WARNING Error calling event handler allDownloadsProcessed: <bound method ExternalScripts.all_downloads_processed ofthe python script (functional) to run under windows
thanks in advance