Skip to content

Commit

Permalink
output_dir fix
Browse files Browse the repository at this point in the history
fixes output dir setting not working properly with nzb and sab scripts
  • Loading branch information
michael committed Aug 28, 2015
1 parent 9389d8d commit 33eb642
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions NZBGetPostProcess.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,6 @@

if shouldConvert:
converter = MkvtoMp4(settings, logger=log)
converter.output_dir = None
for r, d, f in os.walk(path):
for files in f:
inputfile = os.path.join(r, files)
Expand All @@ -175,7 +174,8 @@
converter.QTFS(output['output'])
except:
log.warning("File processing failed.")

if converter.output_dir:
path = converter.output_dir
if (category.lower() == categories[0]):
#DEBUG#print "Sickbeard Processing Activated"
autoProcessTV.processEpisode(path, settings, nzb)
Expand Down
3 changes: 2 additions & 1 deletion SABPostProcess.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@
if settings.SAB['convert']:
log.info("Performing conversion")
converter = MkvtoMp4(settings)
converter.output_dir = None
for r, d, f in os.walk(path):
for files in f:
inputfile = os.path.join(r, files)
Expand All @@ -63,6 +62,8 @@
log.exception("Error converting file %s." % inputfile)
else:
log.debug("Ignoring file %s." % inputfile)
if converter.output_dir:
path = converter.output_dir
else:
log.info("Passing without conversion.")

Expand Down

0 comments on commit 33eb642

Please sign in to comment.