From 47ac10c86ec263dddf10766eaa58aca41218e527 Mon Sep 17 00:00:00 2001 From: Nicholas Flamy <30300649+NicholasFlamy@users.noreply.github.com> Date: Thu, 18 Apr 2024 14:50:35 -0400 Subject: [PATCH] Fix Default/None by making it 0 --- source/asad_audio_encoder/plugin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/asad_audio_encoder/plugin.py b/source/asad_audio_encoder/plugin.py index 8030b2464..cc9b587b1 100644 --- a/source/asad_audio_encoder/plugin.py +++ b/source/asad_audio_encoder/plugin.py @@ -46,7 +46,7 @@ class Settings(PluginSettings): settings = { "encoder": "libfdk_aac", - "channel_rate": "blank_rate", + "channel_rate": "0", "customize": False, "custom_audio": "", "custom_suffix": "", @@ -121,7 +121,7 @@ def __init__(self, *args, **kwargs): "label": "keep each stream's existing rate", }, { - "value": "blank_rate", + "value": "0", "label": "Default/None", }, ] @@ -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)