i rewrote an old python script to change folder names in several torrents via their hashes, but something is wrong and the folders don't change name, but the console prints the correct names.
Anyone have a clue whats wrong? i guess its the second to last line with the request line but don't know what to modify.
for name in rename:
if name.lower() in file_data['name'].rsplit('/', 1)[1].lower():
file_data['name'] = file_data['name'].replace("xyz.siterip", "asd")
print(file_data['name'])
r = requests.post(url + 'api/v2/torrents/filePrio',
data = {'hash' : torrent_hash, 'id' : str(file_id), 'priority' : '0'})
# without pauses qBittorent can choke on requests
time.sleep(0.05)