mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-24 03:59:20 +02:00
Compare commits
No commits in common. "24b0b24ad953895e84923e48bd417c3cae24cf75" and "b07d9624364eea2a0f85a0fa47e95ba2751f8992" have entirely different histories.
24b0b24ad9
...
b07d962436
|
@ -65,10 +65,11 @@ def osd_observer(_name, value):
|
|||
print_there(0, 0, '\r'+osd_string[:term_len])
|
||||
|
||||
|
||||
@player.event_callback('start-file')
|
||||
@player.property_observer('stream-open-filename')
|
||||
@logger.catch
|
||||
def starting_file_handler(value):
|
||||
def waiting_load_observer(_name, value):
|
||||
'''just show loading state'''
|
||||
if value and player.core_idle:
|
||||
print_there(0, 0, '\rLoading track...')
|
||||
|
||||
|
||||
|
@ -86,13 +87,8 @@ def universal_observer(_name, value):
|
|||
else:
|
||||
track_size = '?'
|
||||
if player.cache_speed:
|
||||
speed_load = player.cache_speed
|
||||
if speed_load >= 3*1024*1024:
|
||||
cache_speed = '| <<<'
|
||||
elif speed_load >= 1*1024*1024:
|
||||
cache_speed = '| <<*'
|
||||
else:
|
||||
cache_speed = '| <=>'
|
||||
cache_speed = int(player.cache_speed/1024/1024*8)
|
||||
cache_speed = f'| ~{cache_speed}Mbit/s'
|
||||
else:
|
||||
cache_speed = ''
|
||||
if player.playlist_count > -1:
|
||||
|
|
Loading…
Reference in New Issue