Add support for reading webp artwork

This commit is contained in:
Deluan 2020-08-21 11:33:23 -04:00
parent e2e79d6471
commit 6c8535c54a
3 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,7 @@ func init() {
".gif": "image/gif",
".jpg": "image/jpeg",
".jpeg": "image/jpeg",
".webp": "image/webp",
".png": "image/png",
".bmp": "image/bmp",
}

View File

@ -14,6 +14,8 @@ import (
"strings"
"time"
_ "golang.org/x/image/webp"
"github.com/deluan/navidrome/conf"
"github.com/deluan/navidrome/consts"
"github.com/deluan/navidrome/log"

1
go.mod
View File

@ -35,6 +35,7 @@ require (
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.7.1
golang.org/x/image v0.0.0-20191009234506-e7c1f5e7dbb8
golang.org/x/net v0.0.0-20200625001655-4c5254603344 // indirect
golang.org/x/sys v0.0.0-20200625212154-ddb9806d33ae // indirect
golang.org/x/text v0.3.3 // indirect