mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-08 14:26:37 +08:00
fix media workflows and download organization
This commit is contained in:
@@ -43,15 +43,16 @@ var videoExtensions = map[string]struct{}{
|
||||
|
||||
// ScannerService walks libraries on disk and upserts model.Media rows.
|
||||
type ScannerService struct {
|
||||
cfg *config.Config
|
||||
log *zap.Logger
|
||||
repo *repository.Container
|
||||
hub *Hub
|
||||
probe *FFprobeService
|
||||
scraper *ScraperService
|
||||
storage *StorageConfigService
|
||||
cache *RuntimeCacheService
|
||||
notify *NotifyChannelService
|
||||
cfg *config.Config
|
||||
log *zap.Logger
|
||||
repo *repository.Container
|
||||
hub *Hub
|
||||
probe *FFprobeService
|
||||
scraper *ScraperService
|
||||
organizer *OrganizerService
|
||||
storage *StorageConfigService
|
||||
cache *RuntimeCacheService
|
||||
notify *NotifyChannelService
|
||||
|
||||
imageProxy *ImageProxy
|
||||
|
||||
@@ -118,6 +119,12 @@ func (s *ScannerService) SetStorageConfig(storage *StorageConfigService) {
|
||||
}
|
||||
}
|
||||
|
||||
func (s *ScannerService) SetOrganizer(organizer *OrganizerService) {
|
||||
if s != nil {
|
||||
s.organizer = organizer
|
||||
}
|
||||
}
|
||||
|
||||
func (s *ScannerService) SetRuntimeCache(cache *RuntimeCacheService) {
|
||||
if s != nil {
|
||||
s.cache = cache
|
||||
|
||||
Reference in New Issue
Block a user