mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-03 20:47:35 +03:00
Don't refresh smart playlists when generating covers
This commit is contained in:
parent
950cc28e67
commit
df0f140f9f
9 changed files with 14 additions and 12 deletions
|
@ -55,7 +55,7 @@ var _ = Describe("PlaylistRepository", func() {
|
|||
Expect(err).To(MatchError(model.ErrNotFound))
|
||||
})
|
||||
It("returns all tracks", func() {
|
||||
pls, err := repo.GetWithTracks(plsBest.ID)
|
||||
pls, err := repo.GetWithTracks(plsBest.ID, true)
|
||||
Expect(err).To(BeNil())
|
||||
Expect(pls.Name).To(Equal(plsBest.Name))
|
||||
Expect(pls.Tracks).To(HaveLen(2))
|
||||
|
@ -85,7 +85,7 @@ var _ = Describe("PlaylistRepository", func() {
|
|||
By("adds repeated songs to a playlist and keeps the order")
|
||||
newPls.AddTracks([]string{"1004"})
|
||||
Expect(repo.Put(&newPls)).To(BeNil())
|
||||
saved, _ := repo.GetWithTracks(newPls.ID)
|
||||
saved, _ := repo.GetWithTracks(newPls.ID, true)
|
||||
Expect(saved.Tracks).To(HaveLen(3))
|
||||
Expect(saved.Tracks[0].MediaFileID).To(Equal("1004"))
|
||||
Expect(saved.Tracks[1].MediaFileID).To(Equal("1003"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue