Don't overwrite data variable in utorrent download. fix #2222
This commit is contained in:
1 parent
475ac1bb9c
commit
2f4f140662
1 file changed
+3
-3
@@ -107,9 +107,9 @@ class uTorrent(Downloader):
|
|||||||
|
|
||||||
count += 1
|
count += 1
|
||||||
# Check if torrent is saved in subfolder of torrent name
|
# 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'):
|
if torrent_files.get('error'):
|
||||||
log.error('Error getting data from uTorrent: %s', torrent_files.get('error'))
|
log.error('Error getting data from uTorrent: %s', torrent_files.get('error'))
|
||||||
return False
|
return False
|
||||||
@@ -200,7 +200,7 @@ class uTorrent(Downloader):
|
|||||||
if not self.connect():
|
if not self.connect():
|
||||||
return False
|
return False
|
||||||
return self.utorrent_api.remove_torrent(item['id'], remove_data = delete_files)
|
return self.utorrent_api.remove_torrent(item['id'], remove_data = delete_files)
|
||||||
|
|
||||||
def removeReadOnly(self, folder):
|
def removeReadOnly(self, folder):
|
||||||
#Removes all read-only flags in a folder
|
#Removes all read-only flags in a folder
|
||||||
if folder and os.path.isdir(folder):
|
if folder and os.path.isdir(folder):
|
||||||
|
|||||||
Reference in new issue
Block a user