@@ -228,8 +228,8 @@ def updateStatus(self, *args):
228
228
else :
229
229
if self .oldUserInput ['Title' ] == '' :
230
230
self .oldUserInput ['Title' ] = 'Connecting to: "{}"' .format (self .name )
231
- if (logger .isEnabledFor (logging .DEBUG )):
232
- logger .debug ('Connecting to: "{}"' .format (self .name ))
231
+ if (logger .isEnabledFor (logging .INFO )):
232
+ logger .info ('Connecting to: "{}"' .format (self .name ))
233
233
self .outputStream .write (self .oldUserInput ['Title' ])
234
234
except :
235
235
if logger .isEnabledFor (logging .ERROR ):
@@ -290,7 +290,9 @@ def play(self, name, streamUrl, encoding = ''):
290
290
self .show_volume = True
291
291
self .title_prefix = ''
292
292
self .playback_is_on = False
293
- self .outputStream .write ('Station: {}' .format (name ), self .status_update_lock )
293
+ self .outputStream .write ('Station: "{}"' .format (name ), self .status_update_lock )
294
+ if logger .isEnabledFor (logging .INFO ):
295
+ logger .info ('Selected Station: "{}"' .format (name ))
294
296
if encoding :
295
297
self ._station_encoding = encoding
296
298
else :
@@ -626,6 +628,12 @@ def _format_title_string(self, title_string):
626
628
ret_string = tmp [:tmp .find ("';" )]
627
629
else :
628
630
ret_string = title_string
631
+ if '"artist":"' in ret_string :
632
+ """ work on format:
633
+ ICY Info: START_SONG='{"artist":"Clelia Cafiero","title":"M. Mussorgsky-Quadri di un'esposizione"}';
634
+ Fund on "ClassicaViva Web Radio: Classical"
635
+ """
636
+ ret_string = self .icy_title_prefix + ret_string [ret_string .find ('"artist":' )+ 10 :].replace ('","title":"' , ' - ' ).replace ('"}\' ;' , '' )
629
637
return self ._title_string_format_text_tag (ret_string )
630
638
631
639
def _format_volume_string (self , volume_string ):
0 commit comments