Fixed title casing

This commit is contained in:
Lukas Wölfer
2025-06-05 23:25:27 +02:00
parent 86246a613e
commit 88f774ae76
5 changed files with 73 additions and 59 deletions

View File

@@ -79,5 +79,6 @@ export function parseSummary(description: string, name: string): VideoDescriptio
b.path = name
const titleMatch = name.match(/File:WCS \w+ (?<title>.+)\.[^.]+/)
b.title = titleMatch?.groups ? titleMatch.groups['title'] : name
b.title = b.title.trim()
return (b as VideoDescription)
}