@@ -1048,12 +1048,12 @@ def profile_name(self, val):
10481048 @property
10491049 def command_line_params (self ):
10501050 self ._profile_name = '' if self .PLAYER_NAME == 'vlc' else 'pyradio'
1051- the_id = self .params [ self . PLAYER_NAME ][0 ]
1051+ the_id = self .backup_player_params [ 1 ][0 ]
10521052 if the_id == 1 :
10531053 return ''
1054- the_string = self .params [ self . PLAYER_NAME ][the_id ]
1054+ the_string = self .backup_player_params [ 1 ][the_id ]
10551055 if the_string .startswith ('profile:' ):
1056- self .get_profile_name_from_saved_params ()
1056+ self .get_profile_name_from_saved_params (the_string )
10571057 return ''
10581058 else :
10591059 return the_string
@@ -1269,12 +1269,14 @@ def setup_mouse(self):
12691269 def reset_profile_name (self ):
12701270 self ._profile_name = 'pyradio'
12711271
1272- def get_profile_name_from_saved_params (self ):
1272+ def get_profile_name_from_saved_params (self , a_string = None ):
12731273 ''' populate command_line_params_not_ready because this
12741274 is what self.set_profile_from_command_line() reads
12751275 '''
1276- # self.command_line_params_not_ready = self.PLAYER_NAME + ':' + self.saved_params[self.PLAYER_NAME][self.saved_params[self.PLAYER_NAME][0]]
1277- self .command_line_params_not_ready = self .PLAYER_NAME + ':' + self .params [self .PLAYER_NAME ][self .params [self .PLAYER_NAME ][0 ]]
1276+ if a_string :
1277+ self .command_line_params_not_ready = self .PLAYER_NAME + ':' + a_string
1278+ else :
1279+ self .command_line_params_not_ready = self .PLAYER_NAME + ':' + self .params [self .PLAYER_NAME ][self .params [self .PLAYER_NAME ][0 ]]
12781280 self .set_profile_from_command_line ()
12791281
12801282 def set_profile_from_command_line (self ):
0 commit comments