mirror of
https://github.com/truewhile/MeBox.git
synced 2026-10-11 07:46:37 +08:00
Fix media classification scraping and Chinese naming
This commit is contained in:
@@ -147,6 +147,11 @@ func (o *OrganizerService) reclassifyScannedMedia(ctx context.Context, media mod
|
||||
category := overrideCategory
|
||||
if category == "" {
|
||||
category = o.classifyMedia(ctx, &media, mediaType)
|
||||
if isUnclassifiedTVCategory(category, o.categoryMap()) && !mediaHasReliableCategoryMetadata(media) {
|
||||
if existingType, existingCategory := o.mediaTypeForDirectoryCategory(firstNonEmpty(lib.Name, filepath.Base(lib.Path))); existingType != "" && sourceCategoryCompatible(mediaType, existingType) {
|
||||
category = existingCategory
|
||||
}
|
||||
}
|
||||
}
|
||||
if category == "" {
|
||||
return false, nil
|
||||
|
||||
Reference in New Issue
Block a user