fix library deletion and strm path handling

This commit is contained in:
ShukeBta
2026-06-27 15:58:15 +08:00
parent d18d4239db
commit e22b537de4
6 changed files with 147 additions and 12 deletions
+2 -1
View File
@@ -99,8 +99,9 @@ export function isSeriesCard(card: SeriesCard): boolean {
}
export function seriesTitle(media: Media): string {
const title = media.title?.trim()
const fromPath = seriesTitleFromPath(media.path)
return fromPath || media.title || media.original_name || '未命名节目'
return (title && !unsafeEpisodeTitle(title) ? title : '') || fromPath || media.original_name || title || '未命名节目'
}
function normalizeTitle(value?: string): string {