diff options
Diffstat (limited to 'deckit/modules/music.py')
| -rw-r--r-- | deckit/modules/music.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/deckit/modules/music.py b/deckit/modules/music.py index ef19cd0..f590cc0 100644 --- a/deckit/modules/music.py +++ b/deckit/modules/music.py @@ -62,7 +62,7 @@ def make(cfg: dict) -> Module: else: art_src = None return {"status": status, "title": title, "artist": artist, "album": album, - "length": int(length or 0) / 1e6, "position": int(pos or 0) / 1e6, + "length": float(length or 0) / 1e6, "position": float(pos or 0) / 1e6, "art": art_src, "player": name.split(".")[0], "volume": volume} def seek(body): |
