djdembeck / Audnexus.bundle

An Audnexus client proof of concept for Plex, providing rich author and audiobook data. Developed in Python, offering enhanced user experiences via Plex's legacy plugin agent system.
GNU General Public License v3.0
480 stars 21 forks source link

Series not working anymore #88

Closed baloodusudouest closed 1 year ago

baloodusudouest commented 1 year ago

Hi,

The series are not put on the plex metadata for all the series i have (lord of the rings, harry potter...) I'm using the french version of the audiobook, maybe it's the reason why?

Does anyone have the same problem? For US or for other country?

Thanks

plmcgrn commented 1 year ago

Can confirm same issue on English US config. All my series mood tags are gone, and that triggered Plex Meta Manager to wipe out the collections. I think this happened after the most recent updates in v1.2.0.

When looking at the API call, it seems this info (seriesPrimary) is in the response, so the plugin just isn't using it. Example https://api.audnex.us/books/B01N48VJFJ?region=us

Edit: I think this is the commit that broke it https://github.com/djdembeck/Audnexus.bundle/commit/9461d3f3b20a8a7bd7df1a83836f143678073604

It's clearing Moods indiscriminately. If I comment out these two lines, mood tagging works when running "Fix Match". Without commenting them out, series mood tagging doesn't happen/gets erased.

if helper.force:
            helper.metadata.moods.clear()
djdembeck commented 1 year ago

Thanks for the report. @plmcgrn beat me to it in finding the bug. Tags (moods/styles) were being cleared after setting them, thus having no effect.

I've released a fixed version of the plugin for this.