From 241cd8b22186fef6bb6132af884cc2a8c19650c4 Mon Sep 17 00:00:00 2001 From: tianyu Date: Sat, 5 Sep 2015 20:00:01 +0800 Subject: [PATCH] Update transmission.py --- u2helper/transmission.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/u2helper/transmission.py b/u2helper/transmission.py index 850e940..e577e01 100644 --- a/u2helper/transmission.py +++ b/u2helper/transmission.py @@ -62,7 +62,7 @@ for torrent in result["arguments"]["torrents"]: else: location_payload = '''{"method": "torrent-set-location", "arguments": {"move": true, "location": "''' + \ target_dir[seeding["catalog"]].encode('utf8') + \ - seeding["name"].encode('utf8') + '''", "ids": [''' + \ + seeding["name"].encode('utf8').replace('/', '/') + '''", "ids": [''' + \ str(torrent["id"]) + ''']}}''' print location_payload r = requests.post(url, headers=headers, data=location_payload, verify=False)