mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2024-12-20 19:06:06 +01:00
Support for scanning semicolon seperated author and narator lists.
This commit is contained in:
parent
6e8547f0c8
commit
a4a334a18a
@ -43,6 +43,8 @@ module.exports.parse = (nameString) => {
|
|||||||
// Example &LF: Friedman, Milton & Friedman, Rose
|
// Example &LF: Friedman, Milton & Friedman, Rose
|
||||||
if (nameString.includes('&')) {
|
if (nameString.includes('&')) {
|
||||||
nameString.split('&').forEach((asa) => splitNames = splitNames.concat(asa.split(',')))
|
nameString.split('&').forEach((asa) => splitNames = splitNames.concat(asa.split(',')))
|
||||||
|
} else if (nameString.includes(';')) {
|
||||||
|
nameString.split(';').forEach((asa) => splitNames = splitNames.concat(asa.split(',')))
|
||||||
} else {
|
} else {
|
||||||
splitNames = nameString.split(',')
|
splitNames = nameString.split(',')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user