Subsonic: internet radio, chat, bookmarks, play queue, scanner status endpoints
This commit is contained in:
@@ -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).
|
||||
|
||||
Reference in New Issue
Block a user