@@ -115,7 +115,6 @@ def __init__(self, stationFile='', user_config_dir=None):
115115 self .foreign_copy_asked = False
116116 self .added_stations = 0
117117 self ._is_register = False
118- self .check_playlist = None
119118
120119 ''' True if playlist not in config dir '''
121120 self .foreign_file = False
@@ -1262,8 +1261,6 @@ class PyRadioConfig(PyRadioStations):
12621261 )
12631262
12641263 def _init_vars (self ):
1265- self .check_playlist = False
1266-
12671264 ''' if debug is on, this will tell the logger to
12681265 0: not log input from the player
12691266 1: input accepted input from the player
@@ -2318,12 +2315,7 @@ def _read_localized_shortcuts(self, name=None):
23182315 # logger.error('\n\nsetting lkbkey 1\n{}\n\n'.format(reversed_dict))
23192316 set_lkbkey (reversed_dict )
23202317
2321- def read_config (self , distro_config = False , check_playlist = False ):
2322- if check_playlist :
2323- if self ._i_created_the_lock_file :
2324- self .remove_session_lock_file ()
2325- self .locked = True
2326- self .check_playlist = check_playlist
2318+ def read_config (self , distro_config = False ):
23272319 self ._read_config (distro_config = True )
23282320 self .config_opts = deepcopy (self .opts )
23292321 # for n in self.config_opts.items():
@@ -2609,16 +2601,6 @@ def _read_config(self, distro_config=False):
26092601 self .opts ['dirty_config' ][1 ] = False
26102602 self .saved_params = deepcopy (self .params )
26112603
2612- if self .check_playlist :
2613- self ._headless = None
2614- self ._distro = 'Check Playlist Mode'
2615- self .opts ['enable_notifications' ][1 ] = '-1'
2616- self .opts ['remote_control_server_auto_start' ][1 ] = False
2617- self .opts ['enable_clock' ][1 ] = False
2618- self .opts ['auto_update_theme' ][1 ] = False
2619- self .opts ['enable_clock' ][1 ] = True
2620- self .opts ['time_format' ][1 ] = 0
2621-
26222604 if self .headless :
26232605 self .opts ['remote_control_server_ip' ][1 ], self .opts ['remote_control_server_port' ][1 ] = to_ip_port (self ._headless )
26242606 self .opts ['remote_control_server_auto_start' ][1 ] = True
@@ -2965,12 +2947,6 @@ def save_config(self, from_command_line=False):
29652947 0: Config saved successfully
29662948 1: Config not saved (not modified)
29672949 TODO: 2: Config not saved (session locked) '''
2968- if self .check_playlist :
2969- if not from_command_line and \
2970- logger .isEnabledFor (logging .INFO ):
2971- logger .info ('Not saving Config (checking playlist mode activated)' )
2972- return 1
2973-
29742950 if self .locked :
29752951 if not from_command_line and \
29762952 logger .isEnabledFor (logging .INFO ):
@@ -3635,15 +3611,7 @@ def configure_logger(self, recording_dir=None, debug=None, titles=None):
36353611 if debug or titles :
36363612 if debug and not self .log_debug :
36373613 # Handler
3638- if self ._cnf .check_playlist :
3639- if self ._cnf .check_output_folder is None :
3640- ret = self ._create_check_output_folder ()
3641- if not ret :
3642- return False
3643- log_file = path .join (self ._cnf .check_output_folder , 'pyradio.log' )
3644- self ._cnf .check_output_file = log_file
3645- else :
3646- log_file = path .join (path .expanduser ('~' ), 'pyradio.log' )
3614+ log_file = path .join (path .expanduser ('~' ), 'pyradio.log' )
36473615 self .debug_handler = logging .FileHandler (log_file )
36483616 self .debug_handler .setLevel (logging .DEBUG )
36493617
0 commit comments