fix: stabilize library paths and subscription matching

This commit is contained in:
ShukeBta
2026-06-28 12:15:10 +08:00
parent e4abb03ca5
commit a97dc35790
102 changed files with 4582 additions and 1519 deletions
+3 -1
View File
@@ -83,8 +83,10 @@ func (o *OrganizerService) buildOrganizeMediaDestination(ctx context.Context, re
category = o.classifyMedia(ctx, m, mediaType)
}
if impliedType, normalizedCategory := o.mediaTypeForDirectoryCategory(category); impliedType != "" {
mediaType = impliedType
category = normalizedCategory
if normalizeOrganizeMediaType(req.mediaType) == "" {
mediaType = impliedType
}
}
root := o.organizeRoot(req.baseRoot, mediaType, category)
targetLibraryID := ""