utorrent torrents not being removed, fix #2385

This commit is contained in:
Ade
2015-10-08 21:48:39 +13:00
parent 9519bfddd4
commit 18d53167d0

View File

@@ -181,7 +181,7 @@ def removeTorrent(hash, remove_data=False):
status, torrentList = uTorrentClient.list()
torrents = torrentList['torrents']
for torrent in torrents:
if torrent[0].lower() == hash:
if torrent[0].upper() == hash.upper():
if torrent[21] == 'Finished':
logger.info('%s has finished seeding, removing torrent and data' % torrent[2])
uTorrentClient.remove(hash, remove_data)