mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-01-03 00:06:46 +01:00
Merge pull request #1609 from Linden-Ryuujin/feature/semicolonSeperators
Support for scanning semicolon seperated author and narator lists.
This commit is contained in:
commit
11ccbf1913
@ -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