[Enhancement]: Search for authors without suffixes like '- Translator' or '-Foreword' #1219

Open
opened 2026-04-24 23:36:13 +02:00 by adam · 7 comments
Owner

Originally created by @raviwarrier on GitHub (Jun 29, 2023).

Describe the feature/enhancement

image
As you can see from the image above, there are people who get added to the book's meta data because they contributed or translated a book. This is no problem until the author is searched for.
Almost everytime, such a search or match comes up empty because of the suffixes. While I know it would be unfair to remove them from the authors list or some people may want to know what they contributed, an easier option would be to parse out such suffixes before searching for or matching them.

Originally created by @raviwarrier on GitHub (Jun 29, 2023). ### Describe the feature/enhancement ![image](https://github.com/advplyr/audiobookshelf/assets/42061703/b2154624-0ecb-4314-abef-d4c747dbc60b) As you can see from the image above, there are people who get added to the book's meta data because they contributed or translated a book. This is no problem until the author is searched for. Almost everytime, such a search or match comes up empty because of the suffixes. While I know it would be unfair to remove them from the authors list or some people may want to know what they contributed, an easier option would be to parse out such suffixes before searching for or matching them.
adam added the enhancement label 2026-04-24 23:36:13 +02:00
Author
Owner

@advplyr commented on GitHub (Jul 1, 2023):

Are you referring to matching or searching within Abs?

@advplyr commented on GitHub (Jul 1, 2023): Are you referring to matching or searching within Abs?
Author
Owner

@raviwarrier commented on GitHub (Jul 2, 2023):

Matching... for example in the image above, because the translator is listed as "Phillip Freeman - translation", no match comes up for him. The same applies to "Eric Reis - Foreword" (as an example)... but Phillip and Eric are authors and need to be matched.

Hope that clarifies.

@raviwarrier commented on GitHub (Jul 2, 2023): Matching... for example in the image above, because the translator is listed as "Phillip Freeman - translation", no match comes up for him. The same applies to "Eric Reis - Foreword" (as an example)... but Phillip and Eric are authors and need to be matched. Hope that clarifies.
Author
Owner

@advplyr commented on GitHub (Jul 15, 2023):

Do you have other examples of audiobooks that Audible uses hyphens like that? This is the first I'm seeing that

@advplyr commented on GitHub (Jul 15, 2023): Do you have other examples of audiobooks that Audible uses hyphens like that? This is the first I'm seeing that
Author
Owner

@raviwarrier commented on GitHub (Jul 16, 2023):

here are some:
image
image
image
image
In this case, Richard Dawkins is an author himself, but this is how it shows in the author's list:
image
image

@raviwarrier commented on GitHub (Jul 16, 2023): here are some: ![image](https://github.com/advplyr/audiobookshelf/assets/42061703/1ed8d000-b4d9-4b92-abe9-9604d743e1ba) ![image](https://github.com/advplyr/audiobookshelf/assets/42061703/fdad94eb-a901-48ac-8fb0-e5e8c094b896) ![image](https://github.com/advplyr/audiobookshelf/assets/42061703/b913c451-b4e4-4318-a653-33fc77cecff5) ![image](https://github.com/advplyr/audiobookshelf/assets/42061703/15c7ff76-f262-4ba3-a33e-2bb1a26f63db) In this case, Richard Dawkins is an author himself, but this is how it shows in the author's list: ![image](https://github.com/advplyr/audiobookshelf/assets/42061703/af70bc70-1a40-4c11-8627-68bab18640e5) ![image](https://github.com/advplyr/audiobookshelf/assets/42061703/6571bbad-ca59-4a8c-85cf-ba944f82459b)
Author
Owner

@advplyr commented on GitHub (Jul 16, 2023):

Hmm, I'm not sure I like how Audible is doing that because these aren't authors. Do you know if this is only Audible that is giving us this data? Maybe something can be setup specifically for processing the data coming from Audible

@advplyr commented on GitHub (Jul 16, 2023): Hmm, I'm not sure I like how Audible is doing that because these aren't authors. Do you know if this is only Audible that is giving us this data? Maybe something can be setup specifically for processing the data coming from Audible
Author
Owner

@raviwarrier commented on GitHub (Jul 17, 2023):

This is how Audible shows the page:
image

this is how audible shows it in MP3Tag using Seanap's script:
image

I think there are very limited postfixes: - foreword, - contributor, - translator, - introduction, so maybe some hard-coding might work (even though I don't like hard-coding strings)

Another thing I observed is that hyphenated names don't have a space before and after the hyphens (Simon Baron-Cohen) , while these postfixes do, so that might be another way to check and ignore the postfixes. Something like:

if hyphen in name
if surrounded by spaces
take text before hyphen to get name for search
else
take the whole text as name for search
end if
end if

But you would know a better way of implementing this.

@raviwarrier commented on GitHub (Jul 17, 2023): This is how Audible shows the page: ![image](https://github.com/advplyr/audiobookshelf/assets/42061703/5de281d9-8656-49c0-8070-4dd4527f3b7b) this is how audible shows it in MP3Tag using Seanap's script: ![image](https://github.com/advplyr/audiobookshelf/assets/42061703/3f2b1947-55d8-4bf4-a9de-81019b2ba143) I think there are very limited postfixes: - foreword, - contributor, - translator, - introduction, so maybe some hard-coding might work (even though I don't like hard-coding strings) Another thing I observed is that hyphenated names don't have a space before and after the hyphens (Simon Baron-Cohen) , while these postfixes do, so that might be another way to check and ignore the postfixes. Something like: if hyphen in name if surrounded by spaces take text before hyphen to get name for search else take the whole text as name for search end if end if But you would know a better way of implementing this.
Author
Owner

@loughnane commented on GitHub (Jul 25, 2023):

I think its a better solution here to treat 'translators' as a separate field rather than lumping postfixes. As libraries grow you'll see its often the case that someone who has translated something also writes things in their own right. For example George Eliot did a translation of Spinoza's ethics.

@loughnane commented on GitHub (Jul 25, 2023): I think its a better solution here to treat 'translators' as a separate field rather than lumping postfixes. As libraries grow you'll see its often the case that someone who has translated something also writes things in their own right. For example George Eliot did a translation of Spinoza's ethics.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf#1219