mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 16:42:42 +01:00
bpd: allow fractional seconds in seek
The documented type is float, not integer, and clients like mpDris2 send fractional seconds, causing them to crash if these values ar enot accepted.
This commit is contained in:
parent
1a5263b68f
commit
e708d28f85
1 changed files with 1 additions and 1 deletions
|
|
@ -1548,7 +1548,7 @@ class Server(BaseServer):
|
||||||
def cmd_seek(self, conn, index, pos):
|
def cmd_seek(self, conn, index, pos):
|
||||||
"""Seeks to the specified position in the specified song."""
|
"""Seeks to the specified position in the specified song."""
|
||||||
index = cast_arg(int, index)
|
index = cast_arg(int, index)
|
||||||
pos = cast_arg(int, pos)
|
pos = cast_arg(float, pos)
|
||||||
super(Server, self).cmd_seek(conn, index, pos)
|
super(Server, self).cmd_seek(conn, index, pos)
|
||||||
self.player.seek(pos)
|
self.player.seek(pos)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue