BinaryBrain / Beetstream

Beets.io plugin that expose SubSonic API endpoints, allowing you to stream your music everywhere.
MIT License
35 stars 5 forks source link

Improve content type detection #7

Closed bct closed 1 year ago

bct commented 1 year ago

Fixes TypeError: cannot serialize None (type NoneType) in getAlbum when the mimetypes modules can't guess the content type.

I was running into this with FLAC albums on a server that doesn't have any of the mime.types files that mimetypes looks for.

This PR makes two changes: