mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
don't copy if we are forcing FR or Resolution. Fixes #513
This commit is contained in:
parent
b7cb645930
commit
dfb62a059f
1 changed files with 3 additions and 1 deletions
|
@ -159,6 +159,8 @@ def buildCommands(file, newDir):
|
||||||
scale = "-1:" + scale.split(':')[1]
|
scale = "-1:" + scale.split(':')[1]
|
||||||
if h_scale != 1:
|
if h_scale != 1:
|
||||||
video_cmd.extend(['-vf', 'scale=' + scale])
|
video_cmd.extend(['-vf', 'scale=' + scale])
|
||||||
|
if ('-vf' in video_cmd or '-r' in video_cmd) and video_cmd[1] == 'copy':
|
||||||
|
video_cmd[1] = nzbtomedia.VCODEC
|
||||||
map_cmd.extend(['-map', '0:' + str(video["index"])])
|
map_cmd.extend(['-map', '0:' + str(video["index"])])
|
||||||
break # Only one video needed
|
break # Only one video needed
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue