You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I recently was trying to make a ESP32 based small screen to show the album artwork playing on the music assistant.
In the debug log, I noticed one thing.
I used a homeassistant text_sensor to obtain the entity_picture attribute from home assistant. When I switch from a playing track to another. I first get an URL and in a few milliseconds get another one.
The first URL is pointing to the last artwork url, and second is the one to new url. Furthermore, they are in different string combinations.
I looked in MA log. I guess I found the reason.
The first URL is generated by metadata.py including provider+image_format+size=500+path. And the second URL is generated by images.py including path+provider+size=0.
In my use case I need to ignore the first one and only download the picture from the second url which is for the new track.
I would like to ask if this is intended, and I was thinking to skip the first one by searching for "fmt=" string or "size=500" string, because new url doesn't contains that. I hope this will be not be changed in future and cause my code issue :)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I recently was trying to make a ESP32 based small screen to show the album artwork playing on the music assistant.
In the debug log, I noticed one thing.
I used a homeassistant text_sensor to obtain the entity_picture attribute from home assistant. When I switch from a playing track to another. I first get an URL and in a few milliseconds get another one.
The first URL is pointing to the last artwork url, and second is the one to new url. Furthermore, they are in different string combinations.
I looked in MA log. I guess I found the reason.
The first URL is generated by metadata.py including provider+image_format+size=500+path. And the second URL is generated by images.py including path+provider+size=0.
In my use case I need to ignore the first one and only download the picture from the second url which is for the new track.
I would like to ask if this is intended, and I was thinking to skip the first one by searching for "fmt=" string or "size=500" string, because new url doesn't contains that. I hope this will be not be changed in future and cause my code issue :)
Beta Was this translation helpful? Give feedback.
All reactions