fix emby clients and cloud playback controls

This commit is contained in:
ShukeBta
2026-06-13 12:08:57 +08:00
parent ba43117a57
commit a177dc61dd
28 changed files with 2031 additions and 138 deletions
+9 -1
View File
@@ -102,7 +102,15 @@ func (w *WatcherService) Refresh(ctx context.Context) error {
if _, _, ok := parseCloudLibraryPath(l.Path); ok {
continue
}
for _, dir := range listDirsForWatch(l.Path) {
watchRoot, info, err := resolveAccessibleMappedPath(l.Path)
if err != nil || !info.IsDir() {
w.log.Warn("watch path inaccessible",
zap.String("path", l.Path),
zap.String("library_id", l.ID),
zap.Error(err))
continue
}
for _, dir := range listDirsForWatch(watchRoot) {
current[dir] = l.ID
}
}