mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-12-22 13:49:48 +00:00
Cache indicator speed replaced
This commit is contained in:
parent
b07d962436
commit
1a08795a6b
@ -87,8 +87,13 @@ def universal_observer(_name, value):
|
|||||||
else:
|
else:
|
||||||
track_size = '?'
|
track_size = '?'
|
||||||
if player.cache_speed:
|
if player.cache_speed:
|
||||||
cache_speed = int(player.cache_speed/1024/1024*8)
|
speed_load = player.cache_speed
|
||||||
cache_speed = f'| ~{cache_speed}Mbit/s'
|
if speed_load >= 3*1024*1024:
|
||||||
|
cache_speed = '| <<<'
|
||||||
|
elif speed_load >= 1*1024*1024:
|
||||||
|
cache_speed = '| <<*'
|
||||||
|
else:
|
||||||
|
cache_speed = '| <=>'
|
||||||
else:
|
else:
|
||||||
cache_speed = ''
|
cache_speed = ''
|
||||||
if player.playlist_count > -1:
|
if player.playlist_count > -1:
|
||||||
|
Loading…
Reference in New Issue
Block a user