2929)
3030from fastflix .models .profiles import AudioMatch , Profile , MatchItem , MatchType , AdvancedOptions
3131from fastflix .shared import error_message
32+ from fastflix .encoders .common .audio import channel_list
3233
3334language_list = sorted ((k for k , v in Lang ._data ["name" ].items () if v ["pt2B" ] and v ["pt1" ]), key = lambda x : x .lower ())
3435
@@ -96,7 +97,7 @@ def __init__(self, parent_list, app, main, parent, index):
9697 self .grid .addWidget (self .kill_myself , 0 , 5 , 1 , 5 )
9798
9899 self .downmix = QtWidgets .QComboBox ()
99- self .downmix .addItems (["No Downmix" ] + [ str ( x ) for x in range ( 1 , 16 )] )
100+ self .downmix .addItems ([t ( "No Downmix" ) ] + list ( channel_list . keys ()) )
100101 self .downmix .setCurrentIndex (0 )
101102 self .downmix .view ().setFixedWidth (self .downmix .minimumSizeHint ().width () + 50 )
102103
@@ -106,7 +107,7 @@ def __init__(self, parent_list, app, main, parent, index):
106107 self .convert_to .view ().setFixedWidth (self .convert_to .minimumSizeHint ().width () + 50 )
107108
108109 self .bitrate = QtWidgets .QComboBox ()
109- self .bitrate .addItems ([str ( x ) for x in range (32 , 1024 , 32 )])
110+ self .bitrate .addItems ([f" { x } k" for x in range (32 , 1024 , 32 )])
110111 self .bitrate .view ().setFixedWidth (self .bitrate .minimumSizeHint ().width () + 50 )
111112
112113 self .bitrate .setDisabled (True )
@@ -166,7 +167,7 @@ def get_settings(self):
166167 match_input = match_input_value ,
167168 conversion = self .convert_to .currentText () if self .convert_to .currentIndex () > 0 else None ,
168169 bitrate = self .bitrate .currentText (),
169- downmix = self .downmix .currentIndex (),
170+ downmix = self .downmix .currentText (),
170171 )
171172
172173
@@ -343,7 +344,7 @@ def __init__(self, app: FastFlixApp, main, *args, **kwargs):
343344 self .main = main
344345 self .config_file = self .app .fastflix .config .config_path
345346 self .setWindowTitle (t ("New Profile" ))
346- self .setMinimumSize (500 , 450 )
347+ self .setMinimumSize (500 , 600 )
347348 layout = QtWidgets .QGridLayout ()
348349
349350 profile_name_label = QtWidgets .QLabel (t ("Profile Name" ))
0 commit comments