Skip to content

Commit

Permalink
fix: next track error
Browse files Browse the repository at this point in the history
  • Loading branch information
cdnninja authored Jan 22, 2025
1 parent 2ce1ed0 commit 42d0ee2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/yoto/media_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 42d0ee2

Please sign in to comment.