[Enhancement]: Ignore punctuation marks (and titles) in Author names #643

Closed
opened 2026-04-24 23:15:23 +02:00 by adam · 11 comments
Owner

Originally created by @raviwarrier on GitHub (Sep 17, 2022).

Describe the feature/enhancement

image

As you can see from the above image, the only difference between the two Burton G. Malkiels is the period after the 'G', making them displayed as two different authors.

While this is metadata taken from other sources and is no fault of ABS, we can at least ignore the punctuation marks and match the name. Also, it would be nice if we could ignore titles (Dr., etc.) or suffixes (PhD, MD, etc.) at the same time.

Originally created by @raviwarrier on GitHub (Sep 17, 2022). ### Describe the feature/enhancement ![image](https://user-images.githubusercontent.com/42061703/190862941-93a50956-9273-463a-b4bd-e7ed16bf8a97.png) As you can see from the above image, the only difference between the two Burton G. Malkiels is the period after the 'G', making them displayed as two different authors. While this is metadata taken from other sources and is no fault of ABS, we can at least ignore the punctuation marks and match the name. Also, it would be nice if we could ignore titles (Dr., etc.) or suffixes (PhD, MD, etc.) at the same time.
adam added the enhancement label 2026-04-24 23:15:23 +02:00
adam closed this issue 2026-04-24 23:15:23 +02:00
Author
Owner

@raviwarrier commented on GitHub (Sep 17, 2022):

image

This I agree is a trickier problem and probably doesn't warrant writing hundreds of lines of code to match & merge.

@raviwarrier commented on GitHub (Sep 17, 2022): ![image](https://user-images.githubusercontent.com/42061703/190863107-ce229cfc-e0e6-4d21-8ad7-7886883df4bd.png) This I agree is a trickier problem and probably doesn't warrant writing hundreds of lines of code to match & merge.
Author
Owner

@advplyr commented on GitHub (Sep 17, 2022):

I think your second example and the prefixes/suffixes you mentioned would be included in #908. I think the solution is to include alternative names for authors.

I think we can have the scanner automatically handle the punctuation case

@advplyr commented on GitHub (Sep 17, 2022): I think your second example and the prefixes/suffixes you mentioned would be included in #908. I think the solution is to include alternative names for authors. I think we can have the scanner automatically handle the punctuation case
Author
Owner

@raviwarrier commented on GitHub (Sep 17, 2022):

Yes #908 is pretty much the same thing.

Thanks for considering the other use case.

@raviwarrier commented on GitHub (Sep 17, 2022): Yes #908 is pretty much the same thing. Thanks for considering the other use case.
Author
Owner

@advplyr commented on GitHub (Oct 2, 2022):

Updated in v2.2.0

@advplyr commented on GitHub (Oct 2, 2022): Updated in [v2.2.0](https://github.com/advplyr/audiobookshelf/releases/tag/v2.2.0)
Author
Owner

@JakobTischler commented on GitHub (Oct 5, 2022):

Version: 2.2.0

I'm not 100% certain this is caused by the commit linked above, but I have some punctuation stripped from the artist in ABS, even though the file tag has it included. This leads to author mismatches.

Example: I have an .m4b file with the artist (and album artist) being C. J. Box. The file is parsed (and displayed) as C. J Box (notice the missing dot after the J) though.

@JakobTischler commented on GitHub (Oct 5, 2022): Version: 2.2.0 I'm not 100% certain this is caused by the commit linked above, but I have some punctuation stripped from the artist in ABS, even though the file tag has it included. This leads to author mismatches. Example: I have an .m4b file with the artist (and album artist) being `C. J. Box`. The file is parsed (and displayed) as `C. J Box` (notice the missing dot after the J) though.
Author
Owner

@advplyr commented on GitHub (Oct 5, 2022):

The commit above isn't modifying anything it is only comparing the author parsed from your library item with all other existing authors. That comparison is removing punctuation.
You may have another author already in your library with C. J Box and it is matching with that one.

@advplyr commented on GitHub (Oct 5, 2022): The commit above isn't modifying anything it is only comparing the author parsed from your library item with all other existing authors. That comparison is removing punctuation. You may have another author already in your library with `C. J Box` and it is matching with that one.
Author
Owner

@JakobTischler commented on GitHub (Oct 6, 2022):

Nope, definitively no other author with that name. The only thing I can think of is that the folder name is Box, C. J (given that folders can't have a trailing dot on Windows).

@JakobTischler commented on GitHub (Oct 6, 2022): Nope, definitively no other author with that name. The only thing I can think of is that the folder name is `Box, C. J` (given that folders can't have a trailing dot on Windows).
Author
Owner

@advplyr commented on GitHub (Oct 6, 2022):

Yeah that is exactly what it is then. There is no good way around that trailing dot on windows other then just naming your author folder C. J. Box instead of doing last, first.

@advplyr commented on GitHub (Oct 6, 2022): Yeah that is exactly what it is then. There is no good way around that trailing dot on windows other then just naming your author folder `C. J. Box` instead of doing last, first.
Author
Owner

@JakobTischler commented on GitHub (Oct 8, 2022):

Sure, but why is the folder name relevant at all? I have Prefer audio metadata turned on in the settings.

@JakobTischler commented on GitHub (Oct 8, 2022): Sure, but why is the folder name relevant at all? I have `Prefer audio metadata` turned on in the settings.
Author
Owner

@advplyr commented on GitHub (Oct 8, 2022):

Are you storing a metadata.abs file inside your library item folder? That file will override everything and maybe the author name was set in there before you enabled prefer audio metadata.

@advplyr commented on GitHub (Oct 8, 2022): Are you storing a `metadata.abs` file inside your library item folder? That file will override everything and maybe the author name was set in there before you enabled prefer audio metadata.
Author
Owner

@JakobTischler commented on GitHub (Oct 9, 2022):

No, no .abs files. These are freshly added audiobooks with only the .m4b file.

By the way, it did work correctly before (with v2.1.5).

@JakobTischler commented on GitHub (Oct 9, 2022): No, no .abs files. These are freshly added audiobooks with only the .m4b file. By the way, it did work correctly before (with v2.1.5).
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#643