From 2f4f140662a1ddd22b274d6ec97733d2c397c8f9 Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 28 Sep 2013 18:19:17 +0200 Subject: [PATCH] Don't overwrite data variable in utorrent download. fix #2222 --- couchpotato/core/downloaders/utorrent/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/couchpotato/core/downloaders/utorrent/main.py b/couchpotato/core/downloaders/utorrent/main.py index ce82c8c..d5262e2 100644 --- a/couchpotato/core/downloaders/utorrent/main.py +++ b/couchpotato/core/downloaders/utorrent/main.py @@ -107,9 +107,9 @@ class uTorrent(Downloader): count += 1 # Check if torrent is saved in subfolder of torrent name - data = self.utorrent_api.get_files(torrent_hash) + getfiles_data = self.utorrent_api.get_files(torrent_hash) - torrent_files = json.loads(data) + torrent_files = json.loads(getfiles_data) if torrent_files.get('error'): log.error('Error getting data from uTorrent: %s', torrent_files.get('error')) return False @@ -200,7 +200,7 @@ class uTorrent(Downloader): if not self.connect(): return False return self.utorrent_api.remove_torrent(item['id'], remove_data = delete_files) - + def removeReadOnly(self, folder): #Removes all read-only flags in a folder if folder and os.path.isdir(folder):