mirror of
https://github.com/xdtianyu/scripts.git
synced 2025-09-21 11:19:32 +08:00
Update transmission.py
This commit is contained in:
@@ -62,7 +62,7 @@ for torrent in result["arguments"]["torrents"]:
|
|||||||
else:
|
else:
|
||||||
location_payload = '''{"method": "torrent-set-location", "arguments": {"move": true, "location": "''' + \
|
location_payload = '''{"method": "torrent-set-location", "arguments": {"move": true, "location": "''' + \
|
||||||
target_dir[seeding["catalog"]].encode('utf8') + \
|
target_dir[seeding["catalog"]].encode('utf8') + \
|
||||||
seeding["name"].encode('utf8') + '''", "ids": [''' + \
|
seeding["name"].encode('utf8').replace('/', '/') + '''", "ids": [''' + \
|
||||||
str(torrent["id"]) + ''']}}'''
|
str(torrent["id"]) + ''']}}'''
|
||||||
print location_payload
|
print location_payload
|
||||||
r = requests.post(url, headers=headers, data=location_payload, verify=False)
|
r = requests.post(url, headers=headers, data=location_payload, verify=False)
|
||||||
|
Reference in New Issue
Block a user