Fix regression: Show artwork in Music Stash when browsing by folder

This commit is contained in:
Deluan
2020-08-13 23:56:06 -04:00
committed by Deluan Quintão
parent 419884db7c
commit 0e16d7cfbb
2 changed files with 20 additions and 2 deletions
+10
View File
@@ -101,6 +101,16 @@ var _ = Describe("Artwork", func() {
Expect(format).To(Equal("jpeg"))
})
It("retrieves the album artwork by album id", func() {
buf := new(bytes.Buffer)
Expect(artwork.Get(ctx, "222", 0, buf)).To(BeNil())
_, format, err := image.Decode(bytes.NewReader(buf.Bytes()))
Expect(err).To(BeNil())
Expect(format).To(Equal("jpeg"))
})
It("resized artwork art as requested", func() {
buf := new(bytes.Buffer)