From 18d53167d00fa39216c5704317ec9b8787b5a8e1 Mon Sep 17 00:00:00 2001 From: Ade Date: Thu, 8 Oct 2015 21:48:39 +1300 Subject: [PATCH] utorrent torrents not being removed, fix #2385 --- headphones/utorrent.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headphones/utorrent.py b/headphones/utorrent.py index 08d20ce1..a826e928 100644 --- a/headphones/utorrent.py +++ b/headphones/utorrent.py @@ -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)