cdnninja/yoto_ha

enhancement: media_player media title improvement

Closed this issue · 2 comments

In cases where chapterTitle and trackTitle are not the same, adjust "media_title" to be "chapterTitle - trackTitle"
and add both chapterTitle and mediaTitle to the media_player attributes

2024-05-19 13:39:16.309 DEBUG (Thread-2 (_thread_main)) [yoto_api.YotoMQTTClient] yoto_api - MQTT Message: {"trackLength":989,"position":383,"cardId":"ecnOg","repeatAll":false,"source":"remote","cardUpdatedAt":"2022-01-11T13:07:31.455Z","chapterTitle":"Chapter 1","chapterKey":"01","trackTitle":"Show and Tell","trackKey":"01","streaming":false,"volume":7,"volumeMax":16,"playbackStatus":"playing","playbackWait":false,"sleepTimerActive":false,"eventUtc":1716118754}

Is this what you had in mind?

#52

perfect.