Search found 2 matches

by jairinhohw
Tue Nov 05, 2019 5:57 am
Forum: Windows
Topic: Script: Bulk Change Save Path
Replies: 12
Views: 15368

Re: Script: Bulk Change Save Path

Is there any way to make this work with non-ASCII characters in the path? I have paths that kind of looks like this D:\ÅÅÅ\ÄÄÄ\ÖÖÖ\ and if I want to do a drive letter change the torrent breaks and doesn't show up in qBittorrent anymore. It works otherwise, but if one sub-folder has one of these cha...
by jairinhohw
Tue Nov 05, 2019 5:54 am
Forum: Windows
Topic: Script: Bulk Change Save Path
Replies: 12
Views: 15368

Re: Script: Bulk Change Save Path

I fixed the problem with non-ascii characters. The problem was an error in the calculation of the length of the new path, because it was calculating the length of the string instead of the utf-8 bytes. import os import re import sys import logging import zipfile from datetime import datetime logger ...