Fix child.size and directory.playCount compatibility with Subsonic API. Fixes #304

This commit is contained in:
Deluan 2020-05-19 23:50:27 -04:00
parent c2d1e9df9f
commit 17df63b550
12 changed files with 17 additions and 18 deletions

View file

@ -101,7 +101,7 @@ var _ = Describe("MediaRepository", func() {
Expect(err).To(BeNil())
Expect(mf.PlayDate.Unix()).To(Equal(playDate.Unix()))
Expect(mf.PlayCount).To(Equal(1))
Expect(mf.PlayCount).To(Equal(int64(1)))
})
It("increments play count on newly starred items", func() {
@ -115,7 +115,7 @@ var _ = Describe("MediaRepository", func() {
Expect(err).To(BeNil())
Expect(mf.PlayDate.Unix()).To(Equal(playDate.Unix()))
Expect(mf.PlayCount).To(Equal(1))
Expect(mf.PlayCount).To(Equal(int64(1)))
})
})
})