Improved subtitle parsing to account for bare colon in title

This commit is contained in:
Khashayar Toodehfallah 2026-02-06 14:31:09 -05:00
parent fe13456a2b
commit c15cb48def
4 changed files with 22 additions and 5 deletions

View file

@ -22,7 +22,7 @@ function parseNfoMetadata(nfoText) {
switch (key) {
case 'title':
{
const titleMatch = value.match(/^(.*?):(.*)$/)
const titleMatch = value.match(/^(.*?): (.*)$/)
if (titleMatch) {
metadata.title = titleMatch[1].trim()
metadata.subtitle = titleMatch[2].trim()