Skip to content

Commit

Permalink
Fix Default/None by making it 0
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasFlamy authored Apr 18, 2024
1 parent a75c18e commit 47ac10c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/asad_audio_encoder/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
class Settings(PluginSettings):
settings = {
"encoder": "libfdk_aac",
"channel_rate": "blank_rate",
"channel_rate": "0",
"customize": False,
"custom_audio": "",
"custom_suffix": "",
Expand Down Expand Up @@ -121,7 +121,7 @@ def __init__(self, *args, **kwargs):
"label": "keep each stream's existing rate",
},
{
"value": "blank_rate",
"value": "0",
"label": "Default/None",
},
]
Expand Down Expand Up @@ -270,7 +270,7 @@ def on_worker_process(data):
if channel_rate != "keep each stream's existing rate":
bit_rate = str(parse_size(channel_rate) * int(channels))
stream_map += ['-map', '0:a:'+str(i), '-c:a:'+str(i), encoder, '-ac', str(channels)]
if channel_rate != "blank_rate":
if channel_rate != "0":
stream_map += ['-b:a:'+str(i), str(bit_rate)]
all_streams.remove(absolute_stream)

Expand Down

0 comments on commit 47ac10c

Please sign in to comment.