添加新功能,完善项目

This commit is contained in:
truewhile
2026-09-22 16:22:29 +08:00
parent 47899284a5
commit b5ce4646cf
85 changed files with 7103 additions and 982 deletions
+8
View File
@@ -59,6 +59,9 @@ type Container struct {
Token *TokenService
ApiConfig *ApiConfigService
Device *DeviceService
Telegram *TelegramService
TelegramExpiry *TelegramExpiryWatcher
Discovery *MediaDiscoveryService
Cache *RuntimeCacheService
Sessions *SessionTrackerService
RecognitionWords *RecognitionWordsService
@@ -103,6 +106,11 @@ func (c *Container) Boot() {
// 启动调度器定时任务
c.Scheduler.Start(c.stopCtx)
// Telegram 通知轮询(未启用或未配置 Token 时直接返回)
if c.Telegram != nil {
c.Telegram.Start(c.stopCtx)
}
// 远程 Emby 挂载兼容迁移:清理已删账号的残留挂载;旧账号无挂载时自动全量挂载
if c.EmbyRemote != nil {
c.EmbyRemote.CleanupOrphanMounts(c.stopCtx)