Compare commits

...

4 Commits

Author SHA1 Message Date
Peder Bergebakken Sundt 546d921ec4 flake.lock: Update
Flake lock file updates:

• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/d8fe5e6c92d0d190646fb9f1056741a229980089' (2024-03-29)
  → 'github:NixOS/nixpkgs/c04d5652cfa9742b1d519688f65d1bbccea9eb7e' (2024-09-19)
2024-09-20 21:52:14 +02:00
Oystein Kristoffer Tveit cb292a56b1 Merge pull request 'webui: handle playback_pos response with empty contents' (#13) from handle-empty-playback-pos-response into master
Reviewed-on: #13
Reviewed-by: Peder Bergebakken Sundt <pederbs@pvv.ntnu.no>
2024-08-05 21:16:57 +02:00
Oystein Kristoffer Tveit 132cabf434
webui: handle playback_pos response with empty contents 2024-08-05 17:53:15 +02:00
Daniel Lovbrotte Olsen 4617f83f5c Merge pull request 'cli: fix relative volume adjustment' (#12) from fix-new-cli-features into master
Reviewed-on: #12
2024-06-02 02:38:17 +02:00
2 changed files with 4 additions and 4 deletions

View File

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1711703276, "lastModified": 1726755586,
"narHash": "sha256-iMUFArF0WCatKK6RzfUJknjem0H9m4KgorO/p3Dopkk=", "narHash": "sha256-PmUr/2GQGvFTIJ6/Tvsins7Q43KTMvMFhvG6oaYK+Wk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "d8fe5e6c92d0d190646fb9f1056741a229980089", "rev": "c04d5652cfa9742b1d519688f65d1bbccea9eb7e",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@ -294,7 +294,7 @@ class RemiApp(App):
except api.APIError: except api.APIError:
playback_pos = None playback_pos = None
if playback_pos: if playback_pos and isinstance(playback_pos, dict) and playback_pos["current"] and playback_pos["total"]:
slider_pos = playback_pos["current"] / playback_pos["total"] * 100 slider_pos = playback_pos["current"] / playback_pos["total"] * 100
current = seconds_to_timestamp(playback_pos["current"]) current = seconds_to_timestamp(playback_pos["current"])
total = seconds_to_timestamp(playback_pos["total"]) total = seconds_to_timestamp(playback_pos["total"])