[Bug]: Audio metadata scanner changes capitalization of uppercase author names
What happened?
When importing an audiobook with an author name written entirely in uppercase in the embedded MP3 metadata, Audiobookshelf changes the capitalization when initially creating the author.
For example, the MP3 file contains:
ARTIST = ARD ALBUMARTIST = ARD
After the audiobook is scanned, Audiobookshelf creates/displays the author as Ard.
The same behavior occurs with WDR 5, which is imported as Wdr 5.
The source metadata has been verified in Mp3tag and contains the capitalization exactly as shown above.
What did you expect to happen?
Audiobookshelf should preserve the capitalization from the embedded audio metadata exactly.
ARD should remain ARD, and WDR 5 should remain WDR 5.
Uppercase spelling can be intentional, especially for acronyms and organization names, so author names read from embedded metadata should not have their capitalization changed.
Steps to reproduce the issue
- Use an MP3 audiobook that has not previously been added to the Audiobookshelf library.
- Set the embedded MP3 metadata to ARTIST = ARD and ALBUMARTIST = ARD.
- Save the tags and verify that both values are stored as ARD.
- Add the audiobook to an Audiobookshelf library.
- Scan the library.
- Open the newly created author entry.
- The author is displayed as Ard instead of ARD.
Audiobookshelf version
v2.36.0
How are you running audiobookshelf?
Docker
What OS is your Audiobookshelf server hosted from?
Linux
If the issue is being seen in the UI, what browsers are you seeing the problem on?
No response
Logs
Additional Notes
Manually editing the author in the Audiobookshelf web interface from Ard to ARD, or from Wdr 5 to WDR 5, works correctly.
After manually correcting the author capitalization, subsequent library scans do not change it back.
This suggests that the capitalization change occurs specifically when Audiobookshelf initially creates the author from the embedded audio metadata.
Source: advplyr/audiobookshelf