diff --git a/custom_components/yoto/media_player.py b/custom_components/yoto/media_player.py index 9bf5f19..7a57d33 100644 --- a/custom_components/yoto/media_player.py +++ b/custom_components/yoto/media_player.py @@ -79,7 +79,7 @@ async def async_media_stop(self) -> None: await self.coordinator.async_stop_player(self.player.id) async def async_media_next_track(self) -> None: - cardid, chapterid, trackid = split_media_id(self.media_content_id) + cardid, chapterid, trackid, time = split_media_id(self.media_content_id) if chapterid: chapterid = int(chapterid) + 1 if trackid: @@ -89,7 +89,7 @@ async def async_media_next_track(self) -> None: ) async def async_media_previous_track(self) -> None: - cardid, chapterid, trackid = split_media_id(self.media_content_id) + cardid, chapterid, trackid, time = split_media_id(self.media_content_id) if chapterid: chapterid = int(chapterid) - 1 if trackid: