don't process output when no transcoding needed. Fixes #721

This commit is contained in:
clinton-hall 2015-03-21 18:25:49 +10:30
parent ee6163f909
commit b6c5422ce7

View file

@ -767,6 +767,9 @@ def Transcode_directory(dirName):
try:
os.unlink(file)
except: pass
if not os.listdir(newDir): #this is an empty directory and we didn't transcode into it.
os.rmdir(newDir)
newDir = dirname
if not nzbtomedia.PROCESSOUTPUT and nzbtomedia.DUPLICATE: # We postprocess the original files to CP/SB
newDir = dirName
bitbucket.close()