Optimize playlist cover generation

This commit is contained in:
Deluan 2023-01-13 21:33:49 -05:00 committed by Deluan Quintão
parent c46a2a5f5f
commit 16c869ec86
5 changed files with 42 additions and 28 deletions

View file

@ -110,7 +110,7 @@ type PlaylistRepository interface {
GetAll(options ...QueryOptions) (Playlists, error)
FindByPath(path string) (*Playlist, error)
Delete(id string) error
Tracks(playlistId string) PlaylistTrackRepository
Tracks(playlistId string, refreshSmartPlaylist bool) PlaylistTrackRepository
}
type PlaylistTrack struct {
@ -133,6 +133,7 @@ func (plt PlaylistTracks) MediaFiles() MediaFiles {
type PlaylistTrackRepository interface {
ResourceRepository
GetAll(options ...QueryOptions) (PlaylistTracks, error)
GetAlbumIDs(options ...QueryOptions) ([]string, error)
Add(mediaFileIds []string) (int, error)
AddAlbums(albumIds []string) (int, error)
AddArtists(artistIds []string) (int, error)