添加strm生成

添加strm
This commit is contained in:
truewhile
2026-08-24 14:36:17 +08:00
parent cd1297a30f
commit c55d29ae84
47 changed files with 11956 additions and 4 deletions
+11 -2
View File
@@ -31,8 +31,8 @@ type Container struct {
Bangumi *BangumiProvider
TheTVDB *TheTVDBProvider
Fanart *FanartProvider
Scraper *ScraperService
Playback *PlaybackService
Scraper *ScraperService
Playback *PlaybackService
ImageProxy *ImageProxy
Watcher *WatcherService
Subtitle *SubtitleService
@@ -60,6 +60,7 @@ type Container struct {
Sessions *SessionTrackerService
RecognitionWords *RecognitionWordsService
Danmaku *DanmakuService
Strm *StrmService
stopCtx context.Context
stopCancel context.CancelFunc
@@ -92,6 +93,11 @@ func (c *Container) Boot() {
// 启动调度器定时任务
c.Scheduler.Start(c.stopCtx)
// STRM 元数据下载/上传队列与定时同步巡检
if c.Strm != nil {
c.Strm.Start(c.stopCtx)
}
// Mgo 保号规则巡检:默认关闭,由管理员通过 Telegram Bot 命令开启。
// 每天触发一次评估;规则里的窗口可随机,不固定。
if c.Device != nil {
@@ -134,6 +140,9 @@ func (c *Container) Close() {
if c.Scheduler != nil {
c.Scheduler.Stop()
}
if c.Strm != nil {
c.Strm.Stop()
}
if c.Watcher != nil {
c.Watcher.Stop()
}