From 8c7188c92670b6a8ea4eecb72366a74ae8cc781a Mon Sep 17 00:00:00 2001 From: cdnninja Date: Tue, 21 Jan 2025 17:58:29 -0700 Subject: [PATCH] fix: next track error (#158) --- 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: