From b216589e889b4d3118043e6de3292a339542fa96 Mon Sep 17 00:00:00 2001 From: Ruud Date: Mon, 25 Mar 2013 09:58:39 +0100 Subject: [PATCH] Use normal ID, not extended. fix #1543 --- couchpotato/core/downloaders/nzbget/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/couchpotato/core/downloaders/nzbget/main.py b/couchpotato/core/downloaders/nzbget/main.py index b767ef75..1bc54fd5 100644 --- a/couchpotato/core/downloaders/nzbget/main.py +++ b/couchpotato/core/downloaders/nzbget/main.py @@ -148,7 +148,7 @@ class NZBGet(Downloader): try: history = rpc.history() - if rpc.editqueue('HistoryDelete', 0, "", [int(item['id'][len('NZBGet_'):])]): + if rpc.editqueue('HistoryDelete', 0, "", [tryInt(item['id'])]): path = [hist['DestDir'] for hist in history if hist['NZBID'] == item['id']][0] shutil.rmtree(path, True) except: