Add Stars to the DB, including Artists! Only if DevUseFolderScanner is true
This commit is contained in:
@@ -36,6 +36,7 @@ type AlbumRepository interface {
|
||||
PurgeInactive(active Albums) error
|
||||
GetAllIds() ([]string, error)
|
||||
GetStarred(...QueryOptions) (Albums, error)
|
||||
SetStar(star bool, ids ...string) error
|
||||
Search(q string, offset int, size int) (Albums, error)
|
||||
Refresh(ids ...string) error
|
||||
PurgeEmpty() error
|
||||
|
||||
@@ -1,9 +1,13 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type Artist struct {
|
||||
ID string
|
||||
Name string
|
||||
AlbumCount int
|
||||
Starred bool
|
||||
StarredAt time.Time
|
||||
}
|
||||
type Artists []Artist
|
||||
|
||||
@@ -19,6 +23,8 @@ type ArtistRepository interface {
|
||||
Put(m *Artist) error
|
||||
Get(id string) (*Artist, error)
|
||||
PurgeInactive(active Artists) error
|
||||
GetStarred(...QueryOptions) (Artists, error)
|
||||
SetStar(star bool, ids ...string) error
|
||||
Search(q string, offset int, size int) (Artists, error)
|
||||
Refresh(ids ...string) error
|
||||
GetIndex() (ArtistIndexes, error)
|
||||
|
||||
@@ -52,4 +52,6 @@ type MediaFileRepository interface {
|
||||
Search(q string, offset int, size int) (MediaFiles, error)
|
||||
Delete(id string) error
|
||||
DeleteByPath(path string) error
|
||||
SetStar(star bool, ids ...string) error
|
||||
SetRating(rating int, ids ...string) error
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user