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
@@ -115,7 +115,7 @@ func (o *OrganizerService) organizeLibraryMatchesExpectedPhysicalRoot(libPath, c
if strings.TrimSpace(category) == "" {
return true
}
physicalRoot := o.categoryPhysicalRootDir(category)
physicalRoot := o.mediaTypeRootDirForCategory(mediaType, category)
if physicalRoot == "" {
physicalRoot = mediaTypeRootDir(mediaType)
}
@@ -126,7 +126,7 @@ func (o *OrganizerService) organizeLibraryMatchesExpectedPhysicalRoot(libPath, c
}
func (o *OrganizerService) organizeLibraryPhysicalRootScore(libPath, collectionRoot, mediaType, category string) int {
physicalRoot := o.categoryPhysicalRootDir(category)
physicalRoot := o.mediaTypeRootDirForCategory(mediaType, category)
if physicalRoot == "" {
physicalRoot = mediaTypeRootDir(mediaType)
}