Subsonic: internet radio, chat, bookmarks, play queue, scanner status endpoints

This commit is contained in:
2026-08-23 00:21:13 -05:00
parent c6e0131984
commit d92a25b141
13 changed files with 682 additions and 2 deletions
+7
View File
@@ -259,6 +259,13 @@ func (s *Scanner) IsScanning(folderID string) bool {
return s.scanning[folderID]
}
// IsAnyScanning reports whether any folder is currently being scanned.
func (s *Scanner) IsAnyScanning() bool {
s.mu.Lock()
defer s.mu.Unlock()
return len(s.scanning) > 0
}
// ScanAllEnabled scans every enabled music folder sequentially (folders
// run one at a time; files within a folder run concurrently via the
// worker pool above).