mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-06 13:11:11 -07:00
Fix subtitle codec check. Fixes #473
This commit is contained in:
parent
40ae33c689
commit
37cc367e76
1 changed files with 1 additions and 1 deletions
|
@ -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'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue