mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-18 21:07:44 +03:00
Revert "Process empty folders as changed folders"
This reverts commit e07152b6955558dbbca373cd98b46c0ffa3aae5e.
This commit is contained in:
parent
e07152b695
commit
779d4a1c85
@ -185,8 +185,8 @@ func (s *TagScanner) getDBDirTree(ctx context.Context) (map[string]struct{}, err
|
||||
|
||||
func (s *TagScanner) folderHasChanged(ctx context.Context, folder dirStats, dbDirs map[string]struct{}, lastModified time.Time) bool {
|
||||
_, inDB := dbDirs[folder.Path]
|
||||
// If is a new folder with at least one song OR it is empty OR it was modified after lastModified
|
||||
return (!inDB && (folder.AudioFilesCount > 0)) || folder.AudioFilesCount == 0 || folder.ModTime.After(lastModified)
|
||||
// If is a new folder with at least one song OR it was modified after lastModified
|
||||
return (!inDB && (folder.AudioFilesCount > 0)) || folder.ModTime.After(lastModified)
|
||||
}
|
||||
|
||||
func (s *TagScanner) getDeletedDirs(ctx context.Context, fsDirs dirMap, dbDirs map[string]struct{}) []string {
|
||||
|
Loading…
x
Reference in New Issue
Block a user