From 42d0ee21e213a9b8613aa8c0e6710f5d249920d1 Mon Sep 17 00:00:00 2001 From: cdnninja Date: Tue, 21 Jan 2025 17:57:59 -0700 Subject: [PATCH] fix: next track error --- custom_components/yoto/media_player.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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: