Compare commits

...

2 Commits

View File

@ -65,11 +65,10 @@ def osd_observer(_name, value):
print_there(0, 0, '\r'+osd_string[:term_len])
@player.property_observer('stream-open-filename')
@player.event_callback('start-file')
@logger.catch
def waiting_load_observer(_name, value):
def starting_file_handler(value):
'''just show loading state'''
if value and player.core_idle:
print_there(0, 0, '\rLoading track...')
@ -87,8 +86,13 @@ def universal_observer(_name, value):
else:
track_size = '?'
if player.cache_speed:
cache_speed = int(player.cache_speed/1024/1024*8)
cache_speed = f'| ~{cache_speed}Mbit/s'
speed_load = player.cache_speed
if speed_load >= 3*1024*1024:
cache_speed = '| <<<'
elif speed_load >= 1*1024*1024:
cache_speed = '| <<*'
else:
cache_speed = '| <=>'
else:
cache_speed = ''
if player.playlist_count > -1: