Retrieving discart
mordred99
Branch: Kevin-B/foo_httpcontrol:retrieve-discart
Branch: oblikoamorale/foo_httpcontrol:master
Declined
Declined pull request
Implemented in more generic manner via https://bitbucket.org/oblikoamorale/foo_httpcontrol/commits/5440ea945620584eeff1c76c97d0fd0027af354f
Closed by: oblikoamorale·2024-01-06
Refactored the code for retrieving artwork in state.cpp to allow for specifying an artwork type (along with 5 other variables needed for all the paths/data!). Added handling code in httpserver to return both file and embedded artwork.
I did not alter the ajquery theme at all, but I did update the config & state.json, plus I provided some sample fallback discart so that users can see how it all is supposed to work.
Scenarios tested for both discart and albumart since that code changed a little as well:
Nothing playing
No artwork found
artwork found
embedded only
prefer embedded over file
file over
albumart_limit_size
and no embeddedfile over
albumart_limit_size
falling back to embeddedembedded over
albumart_limit_size
Â