Audiobook Agent(audible).

It is already reduced to 2 files which are merged to one album.

I used the current version from github https://github.com/macr0dev/Audiobooks.bundle
As far as I narrowed it down it looks like that the score for both examples is the same. Unfortunately it tooks the second one (which is the wrong one) for merging. I “workarounded” it by adding a break here, but thats not a solution. Basically if I understood it correctly it should only use the first result provided by audible if the score is the same.

I feel like you not searching by title searching by keywords is affecting your results. By searching for keywords, you’re opening up the results to include things that may not otherwise be there. You also could be affecting the result order.

Why did you change that exactly?

I had to change it as artist is on my end the series name. I normally just now the series and the episode. Fetching author with series name does not get my any result.

Is the artist the series name because of how your mp3s are tagged? Or something to do with the way audible lists it?

If it’s the tags, the solution is to fix your tags. not rewrite the code. The code exists the way it is because your tags should at least resemble standard convention between audiobooks / music albums / audible.

If it’s something about the way the books are released, I can look at possible solutions for the base code.

Well, yes my mp3s “series” are tagged like that. It can be changed (I also would do that if required) but tbh how should a serie be tagged? Normally you do not know the author of a serie, you know the series name and the episode names. If I have to lookup the author name behind a serie, I can also add all the other tags / covers with this lookup. Second point, especially in a serie the author is not always the same. That makes it really hard as I have to lookup the author for every episode. Third point, Plex shows music by artist on the first level. That is ok for normal books which have to be sorted by author, but for a serie it is quite uncomfortable as the author is mostly unknown. I am open for better solutions :slight_smile:

In general i believe the issue can be solved within the code. Audible lists its search results sorted by best score descending, but if more results are found by the agent and the score calculated by the agent is the same, it takes the last one instead of the first one from the resultset (the first row has the highest score for audible). That should be fixed somehow, because we should trust Audible’s result order before our own scoring if 2 results have the same score.

A series should be tagged with the Book as the “Album” and the Author as the “Album Title.” We may be using the term series in different ways. All of the series that I follow (and there are many) are written by the same author. So not knowing the author is a foreign concept to me. I’m also not used to hearing audiobooks referred to as “episodes.” Are these some kind of radio programs?

If you’d like to do some explaining of how these series your talking about works, there may be something that can be done. But so far, I’ve not heard anything that entices me to change anything. With a few occasional exceptions, it seems to be working well the way that it is. And, I have to do my best to conform the search and organizing to the structure that publishers are using.

Right now, no one would walk into a store and look at Audiobooks organized by narrator. So putting that as the author tag doesn’t buy anybody anything. People are welcome to filter their books by the narrator, as it’s added as a genre tag.

You can also filter by series. So that even if different authors contribute to the same series, you can see them all together through the filtering as the series tag from Audible ends up as a genre tag.

I have copied and extended your version now to my needs and fixed some issues as well - so I am fine.

But basically I would be really interested in how to tag a serie properly, especially if the author is unknown or differs from episode to episode. Let me demonstrate that on a german child serie, called “Benjamin Bluemchen”. Author for episode 1 is Elfie Donnelly and author for episode 122 is Vincent Andreas. How should that be tagged now to have the serie in a common place? If I tag all episodes with the author from episode 1, it would not find its metadata.

Anyhow, I currently see a more common issue in the way how search results are handled by the agent in any case as soon as more results are found. Audible lists its search results sorted by best score descending, but if more results are found by the agent and the score calculated by the agent is the same, it takes the last one instead of the first one from the resultset (the first row has the highest score for audible). That should be fixed somehow, because we should trust Audible’s result order before our own scoring if 2 results have the same score.

Let me demonstrate that: I am searching for the query “Benjamin Bluemchen” and “zieht aus”

Audible results in the following order:

  • Benjamin zieht aus (Benjamin Blümchen 40)
  • Der Zoo zieht um (Benjamin Blümchen 38)

The agent now calculates a scoring of 85 for BOTH of them and then takes the second one for matching the attributes. From my opinion that needs to be changed. If the score of the agent is equal, it should always follow audible’s sort order and use the first instead of the last result.

@dethrophes said:
There is a new Audiobook Agent hosted here
GitHub - macr0dev/Audiobooks.bundle: Plex metadata scraper for Audiobooks

My fork of which is here.
GitHub - dethrophes/Audiobooks.bundle: Plex metadata scraper for Audiobooks

This gets the meta data from audible.com or if the language is French, German or Italian it gets the info from audible.fr, audible.de, or audible.it.

This was working perfectly until recently…now know matter what I try to match (even previously found) it says no match… I updated Plex to newest and then went back to previous and still broke… any ideas?

Can you be more specific? Are you using one of the forks, or my code? I just added a book this morning and it’s working just fine. I’m on the most recent server version.

I just made some tests and it is not working, it just does not return matches, not automatically nor manually.

I am not using any fork … are there many forks? I just know of one (dethrophes)!

Regards

@Zekeman2299 said:

@dethrophes said:
There is a new Audiobook Agent hosted here
GitHub - macr0dev/Audiobooks.bundle: Plex metadata scraper for Audiobooks

My fork of which is here.
GitHub - dethrophes/Audiobooks.bundle: Plex metadata scraper for Audiobooks

This gets the meta data from audible.com or if the language is French, German or Italian it gets the info from audible.fr, audible.de, or audible.it.

This was working perfectly until recently…now know matter what I try to match (even previously found) it says no match… I updated Plex to newest and then went back to previous and still broke… any ideas?

If you are talking about my version it should b e working now.

Was there a problem? did you make a modification? or it just started working again?

Best Regards

@dethrophes said:

@Zekeman2299 said:

@dethrophes said:
There is a new Audiobook Agent hosted here
GitHub - macr0dev/Audiobooks.bundle: Plex metadata scraper for Audiobooks

My fork of which is here.
GitHub - dethrophes/Audiobooks.bundle: Plex metadata scraper for Audiobooks

This gets the meta data from audible.com or if the language is French, German or Italian it gets the info from audible.fr, audible.de, or audible.it.

This was working perfectly until recently…now know matter what I try to match (even previously found) it says no match… I updated Plex to newest and then went back to previous and still broke… any ideas?

If you are talking about my version it should b e working now.

Sorry!! I confused the orginal (mac0dev) with yours!! :frowning:

This one is working fine!!

Best Regards

@cheveguerra@gmail.com said:
Was there a problem? did you make a modification? or it just started working again?

Yes I modified it, audible keep tweaking their url build…
I’ve now reworked the code to be more robust when parsing it, hopefully the last time I’ll have to tweak it.

I also tweaked some issues I just noticed with doing manual searches, So it should be a bit better with those now as well.

Audible has been making a lot of changes lately. I’ve noticed a few visual things as well.

Guess I’ll be doing some code updates tonight after work…

The new update fixed it for me!! Thanks!

What is the best naming convention to use?

The naming convention is less important in this situation. Mine vary A LOT. But personally, I’d always recommend having the track number and title. Here’s examples of some of mine

01 - Title.mp3
01-Author.Name-Book.Title.mp3

Plex is going to group and sort off the mp3 tags, so just name what makes you happy.

Sorry to report…but both versions don’t work anymore (on mac). It will initially load the covers and audiobook details, but if you look at movies (for exampe) then go back to the audiobook directory…all the metadata will vanish. Tried this on my iMac and Macmini servers… Help!

This sounds like less of an agent problem and more of a problem with your server. If the content downloads at all, the agent has done its job.

From there on the server handles everything else.