Giter Site home page Giter Site logo

Comments (8)

macr0dev avatar macr0dev commented on May 18, 2024 2

OK. The url split change has been committed to the master branch. All is right with the world. Thanks to cheveguerra for spotting that so quickly.

from audiobooks.bundle.

revelous avatar revelous commented on May 18, 2024 1

Yep, cheveguerra is correct. I just figured out the same thing...
It's too much trouble to fix match everything, rebuilding the library now...

from audiobooks.bundle.

macr0dev avatar macr0dev commented on May 18, 2024 1

It looks like audible has changed something in their site in the last couple of days. My own server loaded a book fine last week, but a quick test this afternoon gives a couple of errors and doesn't load all the data.

I'll dig in and make some corrections.

from audiobooks.bundle.

matthew-hodgins avatar matthew-hodgins commented on May 18, 2024

I found a checkbox to enable some more debug logging:
2017-07-17 16:45:12,730 (ef8) : DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/32841/tree' 2017-07-17 16:45:12,744 (ef8) : INFO (logkit:16) - ***** UPDATING "Angels and Demons" ID: Mysteries-Thrillers - AUDIBLE v.1.2017.03.05.1 ***** 2017-07-17 16:45:12,767 (ef8) : DEBUG (networking:161) - Fetching 'http://www.audible.com/pd/Mysteries-Thrillers' from the HTTP cache 2017-07-17 16:45:12,780 (ef8) : INFO (logkit:16) - ---------------------------------------XPATH SEARCH HIT----------------------------------------------- 2017-07-17 16:45:12,780 (ef8) : INFO (logkit:16) - date: None 2017-07-17 16:45:12,782 (ef8) : INFO (logkit:16) - title: 2017-07-17 16:45:12,782 (ef8) : INFO (logkit:16) - author: 2017-07-17 16:45:12,782 (ef8) : INFO (logkit:16) - series: 2017-07-17 16:45:12,782 (ef8) : INFO (logkit:16) - narrator: 2017-07-17 16:45:12,782 (ef8) : INFO (logkit:16) - studio: 2017-07-17 16:45:12,782 (ef8) : INFO (logkit:16) - thumb: None 2017-07-17 16:45:12,783 (ef8) : INFO (logkit:16) - genres: , 2017-07-17 16:45:12,783 (ef8) : INFO (logkit:16) - synopsis: 2017-07-17 16:45:12,783 (ef8) : CRITICAL (core:574) - Exception in the update function of agent named 'Audiobooks', called with guid 'com.plexapp.agents.audiobooks://Mysteries-Thrillers?lang=xn' (most recent call last): File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8fa494d15\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1076, in _update agent.update(obj, media, lang, **kwargs) File "D:\AppData\Local\Plex Media Server\Plug-ins\Audiobooks.bundle\Contents\Code\__init__.py", line 405, in update metadata.posters[1] = Proxy.Media(HTTP.Request(thumb)) File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-8fa494d15\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\networkkit.py", line 177, in Request if url.find(':32400/') > -1 and self._sandbox.policy.elevated_execution == False: AttributeError: 'NoneType' object has no attribute 'find'

from audiobooks.bundle.

cheveguerra avatar cheveguerra commented on May 18, 2024

I am getting the same problem, but with the metada of any book:

2017-07-18 10:21:40,709 (16f8) : DEBUG (networking:161) - Fetching 'http://www.audible.com/pd/Health-Fitness' from the HTTP cache
2017-07-18 10:21:40,763 (16f8) : INFO (logkit:16) - ---------------------------------------XPATH SEARCH HIT-----------------------------------------------
2017-07-18 10:21:40,765 (16f8) : INFO (logkit:16) - date: None
2017-07-18 10:21:40,766 (16f8) : INFO (logkit:16) - title:
2017-07-18 10:21:40,766 (16f8) : INFO (logkit:16) - author:
2017-07-18 10:21:40,769 (16f8) : INFO (logkit:16) - series:
2017-07-18 10:21:40,769 (16f8) : INFO (logkit:16) - narrator:
2017-07-18 10:21:40,772 (16f8) : INFO (logkit:16) - studio:
2017-07-18 10:21:40,773 (16f8) : INFO (logkit:16) - thumb: None
2017-07-18 10:21:40,773 (16f8) : INFO (logkit:16) - genres: ,
2017-07-18 10:21:40,776 (16f8) : INFO (logkit:16) - synopsis:
2017-07-18 10:21:40,776 (16f8) : CRITICAL (core:574) - Exception in the update function of agent named 'Audiobooks', called with guid 'com.plexapp.agents.audiobooks://Health-Fitness?lang=xn' (most recent call last):
File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-25d94bad9\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\agentkit.py", line 1076, in update
agent.update(obj, media, lang, **kwargs)
File "C:\Users\Cheve\AppData\Local\Plex Media Server\Plug-ins\Audiobooks.bundle\Contents\Code__init
_.py", line 405, in update
metadata.posters[1] = Proxy.Media(HTTP.Request(thumb))
File "C:\Program Files (x86)\Plex\Plex Media Server\Resources\Plug-ins-25d94bad9\Framework.bundle\Contents\Resources\Versions\2\Python\Framework\api\networkkit.py", line 177, in Request
if url.find(':32400/') > -1 and self._sandbox.policy.elevated_execution == False:
AttributeError: 'NoneType' object has no attribute 'find'
2017-07-18 10:21:40,779 (16f8) : DEBUG (model:229) - Serializing to C:\Users\Cheve\AppData\Local\Plex Media Server\Metadata\Albums\5\2a65eca4d8d5050fadf02c0c26f541bb1d32703.bundle\Contents\com.plexapp.agents.audiobooks\Info.xml
2017-07-18 10:21:40,785 (16f8) : DEBUG (runtime:88) - Sending packed state data (110 bytes)
2017-07-18 10:21:40,785 (16f8) : DEBUG (runtime:924) - Response: [200] str, 16 bytes
I tried with a lot of different audiobooks and always get the same error, it doesn't update any metadata.

Maybe audible changed something in their page that broke the parser!

Best Regards

from audiobooks.bundle.

cheveguerra avatar cheveguerra commented on May 18, 2024

Ok, I think I found the problem,
In line 275 of _init_.py we have: " itemId = url.split('/', 5)[4]"
I changed it to: ""itemId = url.split('/', 7)[6]"
I guess Audible changed the format of its URLs and it broke the code!

But just refreshing the metadata does NOT fix the problem, you have to Fix Match for every audiobook to get the right metadata ... or maybe recreate the Library.

Regards

from audiobooks.bundle.

cheveguerra avatar cheveguerra commented on May 18, 2024

After changing the line 275, the descriptions load, but only if unmatch/rematch or fix matching, or new audiobook!

from audiobooks.bundle.

macr0dev avatar macr0dev commented on May 18, 2024

Yeah. No fix for that. That's a "this is how plex works" issue.

from audiobooks.bundle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.