Fix bug in vlc_telnet seeking (#48425)

Seems the code assumed a different `vlc_telnet` API.

Note that this doesn't address issues in `update()`, which will be
handled in a different PR.

PR extracted from #44776.
This commit is contained in:
David McClosky 2021-03-28 05:58:11 -04:00 committed by GitHub
parent 958c4764f7
commit 70e3fc430c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -220,8 +220,7 @@ class VlcDevice(MediaPlayerEntity):
def media_seek(self, position):
"""Seek the media to a specific location."""
track_length = self._vlc.get_length() / 1000
self._vlc.seek(position / track_length)
self._vlc.seek(int(position))
def mute_volume(self, mute):
"""Mute the volume."""