Compare commits

..

No commits in common. "master" and "fix-new-cli-features" have entirely different histories.

3 changed files with 6 additions and 6 deletions

View File

@ -13,7 +13,7 @@ A set of simple API endpoints and ready-to-go clients to interface with the [Grz
## How to run this ## How to run this
pip install --user git+https://git.pvv.ntnu.no/Grzegorz/grzegorz-clients.git#master pip install --user git+https://github.com/Programvareverkstedet/grzegorz_clients.git#master
### cli ### cli
@ -23,7 +23,7 @@ A set of simple API endpoints and ready-to-go clients to interface with the [Grz
As the user intended to run the server: As the user intended to run the server:
pip install --user git+https://git.pvv.ntnu.no/Grzegorz/grzegorz-clients.git#master pip install --user git+https://github.com/Programvareverkstedet/grzegorz_clients.git#master
grzegorz-webui --host-name 0.0.0.0 --port 80 grzegorz-webui --host-name 0.0.0.0 --port 80
It's rather insecure and could use a reverse proxy and some whitelisting. ;) It's rather insecure and could use a reverse proxy and some whitelisting. ;)

6
flake.lock generated
View File

@ -2,11 +2,11 @@
"nodes": { "nodes": {
"nixpkgs": { "nixpkgs": {
"locked": { "locked": {
"lastModified": 1726755586, "lastModified": 1711703276,
"narHash": "sha256-PmUr/2GQGvFTIJ6/Tvsins7Q43KTMvMFhvG6oaYK+Wk=", "narHash": "sha256-iMUFArF0WCatKK6RzfUJknjem0H9m4KgorO/p3Dopkk=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "c04d5652cfa9742b1d519688f65d1bbccea9eb7e", "rev": "d8fe5e6c92d0d190646fb9f1056741a229980089",
"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 and isinstance(playback_pos, dict) and playback_pos["current"] and playback_pos["total"]: if playback_pos:
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"])