hankhank10 / music-screen-api

Display the playing Sonos track in real time on an e-ink display - also includes functionality for last.fm
120 stars 17 forks source link

Handle truncated album art images #8

Closed jjlawren closed 4 years ago

jjlawren commented 4 years ago

I found that when playing music from Plex, the album art images were sometimes truncated and would cause OSError exceptions when resizing. Seems to be an upstream issue with the Sonos<>Plex integration.

This relies on a feature to allow truncated images in the pillow versions of PIL which the recommended python3-pil package seems to provide. This displays the incomplete images as provided by the Sonos API without crashing the script.

hankhank10 commented 4 years ago

Thank you for this addition, it is appreciated.

I have merged the request into the master.