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: