mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-06-08 11:42:44 +02:00
Improved subtitle parsing to account for bare colon in title
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user