Fixed bug in autoProcessMusic

This commit is contained in:
echel0n 2014-04-07 09:59:41 -07:00
commit 3433cc56aa
2 changed files with 7 additions and 7 deletions

View file

@ -70,7 +70,7 @@ class autoProcessMusic:
params['cmd'] = "forceProcess" params['cmd'] = "forceProcess"
params['dir'] = dirName params['dir'] = dirName
url = baseURL + + urllib.urlencode(params) url = baseURL + urllib.urlencode(params)
Logger.info("Waiting for %s seconds to allow HeadPhones to process newly extracted files", str(delay)) Logger.info("Waiting for %s seconds to allow HeadPhones to process newly extracted files", str(delay))

View file

@ -6,12 +6,6 @@ from itertools import chain
original_ConfigObj = lib.configobj.ConfigObj original_ConfigObj = lib.configobj.ConfigObj
class config(original_ConfigObj): class config(original_ConfigObj):
def __init__(self, *args, **kw):
if len(args) == 0:
args = (self.CONFIG_FILE,)
super(lib.configobj.ConfigObj, self).__init__(*args, **kw)
self.interpolation = False
# constants for nzbtomedia # constants for nzbtomedia
NZBTOMEDIA_VERSION = 'V9.3' NZBTOMEDIA_VERSION = 'V9.3'
NZBTOMEDIA_TIMEOUT = 60 NZBTOMEDIA_TIMEOUT = 60
@ -47,6 +41,12 @@ class config(original_ConfigObj):
LOG_CONFIG = os.path.join(PROGRAM_DIR, "logging.cfg") LOG_CONFIG = os.path.join(PROGRAM_DIR, "logging.cfg")
SAMPLE_LOG_CONFIG = os.path.join(PROGRAM_DIR, "logging.cfg.sample") SAMPLE_LOG_CONFIG = os.path.join(PROGRAM_DIR, "logging.cfg.sample")
def __init__(self, *args, **kw):
if len(args) == 0:
args = (self.CONFIG_FILE,)
super(lib.configobj.ConfigObj, self).__init__(*args, **kw)
self.interpolation = False
def issubsection(self, inputCategory, sections=None, checkenabled=False): def issubsection(self, inputCategory, sections=None, checkenabled=False):
# checks if the inputCategory belongs to the section # checks if the inputCategory belongs to the section
# or returns sections with subsections matching the inputCategoryu # or returns sections with subsections matching the inputCategoryu