mirror of
https://github.com/Dispatcharr/Dispatcharr.git
synced 2026-01-23 02:35:14 +00:00
don't sent update if progress doesn't increase
This commit is contained in:
parent
f5aa4a8b24
commit
d721b48aa0
1 changed files with 2 additions and 1 deletions
|
|
@ -70,7 +70,8 @@ def fetch_m3u_lines(account, use_cache=False):
|
|||
current_time = time.time()
|
||||
if current_time - last_update_time >= 0.5:
|
||||
last_update_time = current_time
|
||||
send_m3u_update(account.id, "downloading", progress, speed=speed, elapsed_time=elapsed_time, time_remaining=time_remaining)
|
||||
if progress > 0:
|
||||
send_m3u_update(account.id, "downloading", progress, speed=speed, elapsed_time=elapsed_time, time_remaining=time_remaining)
|
||||
|
||||
send_m3u_update(account.id, "downloading", 100)
|
||||
except requests.exceptions.RequestException as e:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue