Fix subtitle codec check. Fixes #473

This commit is contained in:
Clinton Hall 2014-07-11 22:22:59 +09:30
parent 40ae33c689
commit 37cc367e76

View file

@ -100,7 +100,7 @@ def buildCommands(file, newDir):
if nzbtomedia.OUTPUTQUALITYPERCENT:
audio_cmd.extend(['-q:a', str(nzbtomedia.OUTPUTQUALITYPERCENT)])
if nzbtomedia.OUTPUTSUBTITLECODEC and nzbtomedia.ALLOWSUBS:
if nzbtomedia.SCODEC and nzbtomedia.ALLOWSUBS:
sub_cmd.extend(['-c:s', nzbtomedia.SCODEC])
elif nzbtomedia.ALLOWSUBS: # Not every subtitle codec can be used for every video container format!
sub_cmd.extend(['-c:s', 'copy'])