mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 02:26:53 -07:00
bug fixes for #474
This commit is contained in:
parent
d154b663ca
commit
5a984da5c9
2 changed files with 4 additions and 2 deletions
|
@ -278,7 +278,7 @@ class autoProcessTV:
|
||||||
|
|
||||||
if not os.path.exists(dirName):
|
if not os.path.exists(dirName):
|
||||||
logger.debug("The directory %s has been removed. Renaming was successful." % (dirName), section)
|
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:
|
elif current_numMissing < start_numMissing:
|
||||||
logger.debug(
|
logger.debug(
|
||||||
"The number of missing episodes changes from %s to %s and then remained the same for %s minutes. Consider this successful" %
|
"The number of missing episodes changes from %s to %s and then remained the same for %s minutes. Consider this successful" %
|
||||||
|
|
|
@ -305,7 +305,9 @@ def buildCommands(file, newDir):
|
||||||
subs1 = []
|
subs1 = []
|
||||||
burnt = 0
|
burnt = 0
|
||||||
for lan in nzbtomedia.SLANGUAGES:
|
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:
|
if nzbtomedia.BURN and not subs1 and not burnt:
|
||||||
for subfile in get_subs(file):
|
for subfile in get_subs(file):
|
||||||
if lan in os.path.split(subfile)[1]:
|
if lan in os.path.split(subfile)[1]:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue