From 367c385fff918e6ac581388259947730532cf76b Mon Sep 17 00:00:00 2001 From: Ruud Date: Sat, 27 Apr 2013 11:12:15 +0200 Subject: [PATCH] Lowercase variables --- couchpotato/core/downloaders/nzbget/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/downloaders/nzbget/main.py b/couchpotato/core/downloaders/nzbget/main.py index c060a334..fc54f024 100644 --- a/couchpotato/core/downloaders/nzbget/main.py +++ b/couchpotato/core/downloaders/nzbget/main.py @@ -164,9 +164,9 @@ class NZBGet(Downloader): history = rpc.history() for hist in history: if hist['Parameters'] and hist['Parameters']['couchpotato'] and hist['Parameters']['couchpotato'] == item['id']: - NZBID = hist['ID'] + nzb_id = hist['ID'] path = hist['DestDir'] - if rpc.editqueue('HistoryDelete', 0, "", [tryInt(NZBID)]): + if rpc.editqueue('HistoryDelete', 0, "", [tryInt(nzb_id)]): shutil.rmtree(path, True) except: log.error('Failed deleting: %s', traceback.format_exc(0))