From 236f42ce81a477987307542f2bf16d251bfd927c Mon Sep 17 00:00:00 2001 From: evilhero Date: Sun, 13 Jan 2013 14:20:39 -0500 Subject: [PATCH] FIX: updated version to master (wrong reference point) --- mylar/__init__.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/mylar/__init__.py b/mylar/__init__.py index 9d1d8885..7da1fc14 100755 --- a/mylar/__init__.py +++ b/mylar/__init__.py @@ -287,7 +287,13 @@ def initialize(): SAB_APIKEY = check_setting_str(CFG, 'SABnzbd', 'sab_apikey', '') SAB_CATEGORY = check_setting_str(CFG, 'SABnzbd', 'sab_category', '') SAB_PRIORITY = check_setting_str(CFG, 'SABnzbd', 'sab_priority', '') - + if SAB_PRIORITY.isdigit(): + if SAB_PRIORITY == "0": SAB_PRIORITY = "Default" + elif SAB_PRIORITY == "1": SAB_PRIORITY = "Low" + elif SAB_PRIORITY == "2": SAB_PRIORITY = "Normal" + elif SAB_PRIORITY == "3": SAB_PRIORITY = "High" + elif SAB_PRIORITY == "4": SAB_PRIORITY = "Paused" + else: SAB_PRIORITY = "Default" NZBSU = bool(check_setting_int(CFG, 'NZBsu', 'nzbsu', 0)) NZBSU_APIKEY = check_setting_str(CFG, 'NZBsu', 'nzbsu_apikey', '')