@@ -679,7 +679,7 @@ def __init__(self, pyradio_config,
679679 self.ws.DELETE_PLAYLIST_MODE: self._ask_to_delete_playlist,
680680 self.ws.KEYBOARD_CONFIG_MODE: self._redisplay_keyboard_config,
681681 self.ws.LOCALIZED_CONFIG_MODE: self._redisplay_localized_config,
682- self.ws.EDIT_PROFILE_MODE: self._redisplay_profile_config ,
682+ self.ws.EDIT_PROFILE_MODE: self._redisplay_profile_editor ,
683683 }
684684
685685 self._help_keys = {
@@ -2625,7 +2625,8 @@ def playSelection(self, restart=False):
26252625 self._last_played_station_id = self.selection
26262626 with self._check_lock:
26272627 self._station_to_check_id = self.selection
2628- logger.error('********* checking {} : {} ********\n'.format(self._station_to_check_id, self.stations[self._station_to_check_id]))
2628+ if logger.isEnabledFor(logging.INFO):
2629+ logger.info('\n*********\nstarting id = {}\n:{}\n********\n'.format(self._station_to_check_id, self.stations[self._station_to_check_id]))
26292630 # logger.error('setting playing to {}'.format(self.selection))
26302631 self.playing = self.selection
26312632 if not stream_url:
@@ -5653,7 +5654,7 @@ def _localized_init_config(self, parent=None):
56535654 )
56545655 self._keyboard_localized_win.show(parent=self.outerBodyWin)
56555656
5656- def _redisplay_profile_config (self):
5657+ def _redisplay_profile_editor (self):
56575658 if self._station_profile_editor is None:
56585659 profiles = ['Default'] + self._cnf.profile_manager.all_profiles()
56595660 profile = self._station_editor.profile
@@ -8128,19 +8129,27 @@ def keypress(self, char):
81288129 ''' display line editor help '''
81298130 self._show_line_editor_help()
81308131 elif ret == 3:
8132+ logger.error('\n\nHERE\n\n')
81318133 ''' show encoding '''
8132- if self._station_editor._encoding == '':
8133- self._station_editor._encoding = self._cnf.default_encoding
8134+ if self._station_editor._encoding == '' or \
8135+ self._station_editor._encoding == self._cnf.default_encoding:
8136+ self._station_editor._encoding = 'Default'
81348137 self.ws.operation_mode = self.ws.EDIT_STATION_ENCODING_MODE
8135- self._encoding_select_win = PyRadioSelectEncodings(self.outerBodyMaxY,
8136- self.outerBodyMaxX, self._station_editor._encoding, self._cnf.default_encoding)
8138+ self._encoding_select_win = PyRadioSelectEncodings(
8139+ self.outerBodyMaxY,
8140+ self.outerBodyMaxX,
8141+ self._station_editor._encoding,
8142+ self._cnf.default_encoding,
8143+ show_default=True
8144+ )
8145+ logger.error('{}'.format(self._station_editor._encoding))
81378146 self._encoding_select_win.set_reduced_global_functions(self._global_functions)
81388147 self._encoding_select_win.init_window()
81398148 self._encoding_select_win.refresh_win()
81408149 self._encoding_select_win.setEncoding(self._station_editor._encoding)
81418150 elif ret == 5:
81428151 self.ws.operation_mode = self.ws.EDIT_PROFILE_MODE
8143- self._redisplay_profile_config ()
8152+ self._redisplay_profile_editor ()
81448153 return
81458154
81468155 elif self.ws.operation_mode in (self.ws.RENAME_PLAYLIST_MODE, self.ws.CREATE_PLAYLIST_MODE):
0 commit comments