mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-12 05:08:45 +01:00
Merge remote-tracking branch 'origin/master' into pr5949
# Conflicts: # cmd/wire_gen.go
This commit is contained in:
commit
bd6a3fb16e
58 changed files with 1732 additions and 543 deletions
|
|
@ -145,6 +145,17 @@ func (m *MockLibraryRepo) ScanEnd(_ context.Context, id int) error {
|
|||
return nil
|
||||
}
|
||||
|
||||
func (m *MockLibraryRepo) SetScannedPID(_ context.Context, id int, pid model.PIDConfig) error {
|
||||
if m.Err != nil {
|
||||
return m.Err
|
||||
}
|
||||
if lib, ok := m.Data[id]; ok {
|
||||
lib.ScannedPIDAlbum, lib.ScannedPIDTrack = pid.Album, pid.Track
|
||||
m.Data[id] = lib
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (m *MockLibraryRepo) ScanInProgress(_ context.Context) (bool, error) {
|
||||
if m.Err != nil {
|
||||
return false, m.Err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue