Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Handle 'special' releases #17

Closed
djdembeck opened this issue Aug 28, 2021 · 0 comments · Fixed by #18
Closed

Handle 'special' releases #17

djdembeck opened this issue Aug 28, 2021 · 0 comments · Fixed by #18
Labels
bug Something isn't working

Comments

@djdembeck
Copy link
Collaborator

Some Audible releases are formatted differently, with background images. This specifically breaks genre extraction.

Test case: https://www.audible.com/pd/Herbie-Audiobook/B07X1TGC2Z

error:

2021-08-28 06:01:18,393 (154ebc22bb38) :  CRITICAL (agentkit:1095) - Exception in the update function of agent named 'Audiobooks', called with guid 'com.plexapp.agents.audiobooks://B07X1TGC2Z?lang=en' (most recent call last):
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-1a38e63c6/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1093, in _update
    agent.update(obj, media, lang, **kwargs)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/Audiobooks.bundle/Contents/Code/__init__.py", line 258, in update
    self.date_missing(update_helper, html)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/Audiobooks.bundle/Contents/Code/__init__.py", line 612, in date_missing
    helper.re_parse_with_date_published(json_data)
  File "/config/Library/Application Support/Plex Media Server/Plug-ins/Audiobooks.bundle/Contents/Code/update_tools.py", line 54, in re_parse_with_date_published
    data['itemListElement'][2]['item']['name']
  File "/usr/lib/plexmediaserver/Resources/Plug-ins-1a38e63c6/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 108, in <lambda>
    _getitem_           = lambda x, y: x.__getitem__(y),
IndexError: list index out of range
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant