> So - I could put in the extra code to try to handle it - but I think a
> better solution would be for LMS (if it knows) to fallback to the "icon"
> image if the "cover" one fails.
LMS usually isn't involved in this process: it receives a URL from the
radio station or whatever, and it tells the client to use it. The client
(Radio, web UI, mobile app) then tries to display that image. It's then
up to the client to handle the 404. A browser obviously would display
the broken image.
Now there's always an exception to a rule:
> Any quick hints about where in LMS it might be? (lots of references to
> icon or cover in the code)
If you used LMS' image proxy it would/should return the default icon in
such a case. But you'd either have to switch to using that image proxy
instead of mysb's (and this you can't do easily), or you'd have to
implement this in your plugin. See the Slim::Web::ImageProxy's header.
There's some information about how to register your custom image handler.
I must say that I've rarely seen this issue. If this is from a specific
station, then it might be worth just asking them to fix their artwork.
--
Michael
> better solution would be for LMS (if it knows) to fallback to the "icon"
> image if the "cover" one fails.
LMS usually isn't involved in this process: it receives a URL from the
radio station or whatever, and it tells the client to use it. The client
(Radio, web UI, mobile app) then tries to display that image. It's then
up to the client to handle the 404. A browser obviously would display
the broken image.
Now there's always an exception to a rule:
> Any quick hints about where in LMS it might be? (lots of references to
> icon or cover in the code)
If you used LMS' image proxy it would/should return the default icon in
such a case. But you'd either have to switch to using that image proxy
instead of mysb's (and this you can't do easily), or you'd have to
implement this in your plugin. See the Slim::Web::ImageProxy's header.
There's some information about how to register your custom image handler.
I must say that I've rarely seen this issue. If this is from a specific
station, then it might be worth just asking them to fix their artwork.
--
Michael