Closed bct closed 1 year ago
Fixes TypeError: cannot serialize None (type NoneType) in getAlbum when the mimetypes modules can't guess the content type.
TypeError: cannot serialize None (type NoneType)
getAlbum
mimetypes
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:
Fixes
TypeError: cannot serialize None (type NoneType)
ingetAlbum
when themimetypes
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: