bug fixes for #474

This commit is contained in:
clinton-hall 2014-07-30 08:54:35 +09:30
commit 5a984da5c9
2 changed files with 4 additions and 2 deletions

View file

@ -278,7 +278,7 @@ class autoProcessTV:
if not os.path.exists(dirName):
logger.debug("The directory %s has been removed. Renaming was successful." % (dirName), section)
return 0
return [0, "%s: Successfully post-processed %s" % (section, inputName) ]
elif current_numMissing < start_numMissing:
logger.debug(
"The number of missing episodes changes from %s to %s and then remained the same for %s minutes. Consider this successful" %

View file

@ -305,7 +305,9 @@ def buildCommands(file, newDir):
subs1 = []
burnt = 0
for lan in nzbtomedia.SLANGUAGES:
subs1 = [ item for item in subStreams if item["tags"]["language"] == lan ]
try:
subs1 = [ item for item in subStreams if item["tags"]["language"] == lan ]
except: subs1 = []
if nzbtomedia.BURN and not subs1 and not burnt:
for subfile in get_subs(file):
if lan in os.path.split(subfile)[1]: