@@ -443,7 +443,7 @@ def read_playlist_file(self, stationFile='', is_register=False):
443443 return - 1
444444
445445 self .stations = list (self ._reading_stations )
446- #logger.error('DE stations\n{}\n\n'.format(self.stations))
446+ # logger.error('DE stations\n{}\n\n'.format(self.stations))
447447 self ._reading_stations = []
448448 self ._ps .add (is_register = self ._open_register_list or is_register )
449449 self ._set_playlist_elements (stationFile )
@@ -760,7 +760,7 @@ def remove_station(self, target):
760760 def insert_station (self , station , target ):
761761 ''' Insert a station in the list at index target
762762 It is inserted ABOVE old target (old target becomes old target + 1)'''
763- #logger.error('DE target= {0}, number_of_stations = {1}'.format(target, self.number_of_stations))
763+ # logger.error('DE target= {0}, number_of_stations = {1}'.format(target, self.number_of_stations))
764764 if target < 0 or \
765765 target > self .number_of_stations or \
766766 self .number_of_stations == 0 :
@@ -777,21 +777,21 @@ def insert_station(self, station, target):
777777 self .stations = list (d )
778778 self .dirty_playlist = True
779779 self .number_of_stations = len (self .stations )
780- #logger.error('DE number_of_stations = {}'.format(self.number_of_stations))
780+ # logger.error('DE number_of_stations = {}'.format(self.number_of_stations))
781781 return True , self .number_of_stations
782782
783783 def move_station (self , source , target ):
784784 ''' Moves a station in the list from index source to index target
785785 It is moved ABOVE old target (old target becomes old target + 1)'''
786- #logger.error('DE source = {0}, target = {1}'.format(source, target))
787- #logger.error('DE number_of_stations = {}'.format(self.number_of_stations))
786+ # logger.error('DE source = {0}, target = {1}'.format(source, target))
787+ # logger.error('DE number_of_stations = {}'.format(self.number_of_stations))
788788 if source == target or \
789789 source < 0 or \
790790 target < 0 or \
791791 source >= self .number_of_stations or \
792792 target >= self .number_of_stations or \
793793 self .number_of_stations == 0 :
794- #logger.error('\n\nreturning False\n\n')
794+ # logger.error('\n\nreturning False\n\n')
795795 return False
796796 if source < target :
797797 step = 1
@@ -800,7 +800,7 @@ def move_station(self, source, target):
800800 d = collections .deque (self .stations )
801801 d .rotate (- source )
802802 source_item = d .popleft ()
803- #logger.error('DE source_item = "{}"'.format(source_item))
803+ # logger.error('DE source_item = "{}"'.format(source_item))
804804 d .rotate (source )
805805 d .rotate (- target )
806806 d .appendleft (source_item )
@@ -890,11 +890,11 @@ def open_browser(self, url):
890890 self .dirty_playlist = False
891891
892892 def save_station_position (self , startPos , selection , playing ):
893- #logger.error('DE startPos = {0}, selection = {1}'.format(startPos, selection))
893+ # logger.error('DE startPos = {0}, selection = {1}'.format(startPos, selection))
894894 self ._ps .startPos = startPos
895895 self ._ps .selection = selection
896896 self ._ps .playing = playing
897- #logger.error('DE self._ps._p\n\n{}\n\n'.format(self._ps._p))
897+ # logger.error('DE self._ps._p\n\n{}\n\n'.format(self._ps._p))
898898
899899 def append_to_register (self , register , station ):
900900 reg_file = path .join (self .registers_dir , 'register_' + register + '.csv' )
@@ -1516,7 +1516,7 @@ def _config_to_params(self, a_param):
15161516
15171517 def check_parameters (self ):
15181518 ''' Config parameters check '''
1519- #logger.error('DE check_params: params = {}'.format(self.params))
1519+ # logger.error('DE check_params: params = {}'.format(self.params))
15201520
15211521 for a_key in self .saved_params .keys ():
15221522 if self .saved_params [a_key ] != self .params [a_key ]:
@@ -1898,7 +1898,7 @@ def add(self, station_path='',
18981898 startPos , selection , playing ,
18991899 is_register ,
19001900 browsing_station_service ])
1901- #logger.error('DE playlist history\n{}\n'.format(self._p))
1901+ # logger.error('DE playlist history\n{}\n'.format(self._p))
19021902
19031903 def get_item_member (self , member , item_id = - 1 ):
19041904 if member in self ._id .keys ():
0 commit comments