Minor fixes

This commit is contained in:
Matthew Stratford 2020-12-20 01:40:32 +00:00
parent 479c952766
commit 1855f515a6
No known key found for this signature in database
GPG key ID: 9E53C8B3F0B57395
2 changed files with 2 additions and 2 deletions

View file

@ -48,7 +48,7 @@ class Player():
state = None
running = False
out_q = None
last_msg = None
last_msg = ""
logger = None
__default_state = {

View file

@ -20,7 +20,7 @@
<br>
<label for="file">{{ player.pos_true | int }} / {{ player.length | int }}s ({{ player.remaining | int }}s)</label>
<br>
<progress id="file" value="{{player.pos_true / player.length * 100}}" max="100" style="width: 100%"></progress>
<progress id="file" value="{% if player.length > 0 %}{{player.pos_true / player.length * 100}}{% else %}0{% endif %}" max="100" style="width: 100%"></progress>
<hr />
<h4 class="h6">Loaded Item</h3>