mirror of
https://github.com/rembo10/headphones.git
synced 2026-05-20 02:25:31 +01:00
utorrent torrents not being removed, fix #2385
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user