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
502 stars 21 forks source link

Not able to get cover images on Plex Docker #114

Open theiamdude opened 8 months ago

theiamdude commented 8 months ago

Hi all,

I have been trying to debug for a while now why I am not able to load books cover images into my audiobook collection in Plex.

I am running Plex on a docker container and with all permission required, at least as far as I know, it is working without any issues for my TV series and movies library. I am running 1.32.8.7639 of Plex with 1.3.1 release of the plugin.

When I try to refresh the metadata I keep getting the following error in the logs and a black book cover: Jan 20, 2024 03:10:52.979 [140625198869304] Error — [Req#5ce79a] Error bringing media local (metadata://posters/com.plexapp.agents.audnexus_40e827f2bd1d149c50faecd99dbe7cb72b052708).

Any help or pointers would be greatly appreciated.

The full debug logs are below: Jan 20, 2024 03:10:51.162 [140625196759864] Debug — [Req#5ce755] Refreshing GUID: 'com.plexapp.agents.audnexus://B000AP7VIY?lang=en' Jan 20, 2024 03:10:51.162 [140625196759864] Debug — [Req#5ce755/HCl#3518] HTTP requesting GET http://127.0.0.1:32400/system/agents/update?mediaType=8&force=1&respectTags=0&guid=com%2Eplexapp%2Eagents%2Eaudnexus%3A%2F%2FB000AP7VIY%3Flang%3Den&id=12308 Jan 20, 2024 03:10:51.169 [140625203088184] Debug — Request: [127.0.0.1:53632 (Loopback)] GET /system/agents/update?mediaType=8&force=1&respectTags=0&guid=com%2Eplexapp%2Eagents%2Eaudnexus%3A%2F%2FB000AP7VIY%3Flang%3Den&id=12308 (13 live) #5ce74e GZIP Signed-in Jan 20, 2024 03:10:51.169 [140625203088184] Debug — [Req#5ce74e] [com.plexapp.system] Sending command over HTTP (GET): /system/agents/update?mediaType=8&force=1&respectTags=0&guid=com%2Eplexapp%2Eagents%2Eaudnexus%3A%2F%2FB000AP7VIY%3Flang%3Den&id=12308 Jan 20, 2024 03:10:51.169 [140625203088184] Debug — [Req#5ce74e/HCl#3519] HTTP requesting GET http://127.0.0.1:40437/system/agents/update?mediaType=8&force=1&respectTags=0&guid=com%2Eplexapp%2Eagents%2Eaudnexus%3A%2F%2FB000AP7VIY%3Flang%3Den&id=12308 Jan 20, 2024 03:10:51.180 [140625198869304] Debug — Request: [127.0.0.1:53638 (Loopback)] GET /:/plugins (14 live) #5ce75c GZIP Signed-in Token (plex_user_hidden) Jan 20, 2024 03:10:51.181 [140625476266808] Debug — Completed: [127.0.0.1:53638] 200 GET /:/plugins (14 live) #5ce75c GZIP 0ms 593 bytes Jan 20, 2024 03:10:51.197 [140625438268216] Debug — [HttpClient/HCl#3519] HTTP/1.1 (0.0s) 200 response from GET http://127.0.0.1:40437/system/agents/update?mediaType=8&force=1&respectTags=0&guid=com%2Eplexapp%2Eagents%2Eaudnexus%3A%2F%2FB000AP7VIY%3Flang%3Den&id=12308 (reused) Jan 20, 2024 03:10:51.197 [140625203088184] Debug — [Req#5ce74e] [com.plexapp.system] HTTP reply status 200, with 160 bytes of content. Jan 20, 2024 03:10:51.197 [140625438268216] Debug — [HttpClient/HCl#3518] HTTP/1.1 (0.0s) 200 response from GET http://127.0.0.1:32400/system/agents/update?mediaType=8&force=1&respectTags=0&guid=com%2Eplexapp%2Eagents%2Eaudnexus%3A%2F%2FB000AP7VIY%3Flang%3Den&id=12308 Jan 20, 2024 03:10:51.197 [140625474157368] Debug — Completed: [127.0.0.1:53632] 200 GET /system/agents/update?mediaType=8&force=1&respectTags=0&guid=com%2Eplexapp%2Eagents%2Eaudnexus%3A%2F%2FB000AP7VIY%3Flang%3Den&id=12308 (13 live) #5ce74e GZIP 33ms 467 bytes (pipelined: 1) Jan 20, 2024 03:10:51.198 [140625474157368] Debug — Completed: [192.168.40.14:57560] 200 PUT /library/metadata/12308/refresh (13 live) #5ce755 TLS GZIP 38ms 320 bytes (pipelined: 5) Jan 20, 2024 03:10:51.206 [140625198869304] Debug — Request: [127.0.0.1:53648 (Loopback)] GET /:/metadata/processing?id=12308 (14 live) #5ce771 GZIP Signed-in Token (plex_user_hidden) Jan 20, 2024 03:10:51.206 [140625476266808] Debug — Completed: [127.0.0.1:53648] 200 GET /:/metadata/processing?id=12308 (14 live) #5ce771 GZIP 0ms 166 bytes Jan 20, 2024 03:10:51.208 [140625203088184] Debug — Request: [127.0.0.1:53660 (Loopback)] GET /:/plugins/com.plexapp.agents.audnexus/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoxMjMwOHM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczYKQXJ0aXN0czEwCm1lZGlhX3R5cGVzNDgKY29tLnBsZXhhcHAuYWdlbnRzLmF1ZG5leHVzOi8vQjAwMEFQN1ZJWT9sYW5nPWVuczQKZ3VpZHMxMApCMDAwQVA3VklZczIKaWRyMAo_ (14 live) #5ce783 GZIP Signed-in Token (plex_user_hidden) Jan 20, 2024 03:10:51.208 [140625203088184] Debug — [Req#5ce783] [com.plexapp.agents.audnexus] Sending command over HTTP (GET): /:/plugins/com.plexapp.agents.audnexus/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoxMjMwOHM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczYKQXJ0aXN0czEwCm1lZGlhX3R5cGVzNDgKY29tLnBsZXhhcHAuYWdlbnRzLmF1ZG5leHVzOi8vQjAwMEFQN1ZJWT9sYW5nPWVuczQKZ3VpZHMxMApCMDAwQVA3VklZczIKaWRyMAo_ Jan 20, 2024 03:10:51.208 [140625203088184] Debug — [Req#5ce783/HCl#351a] HTTP requesting GET http://127.0.0.1:37093/:/plugins/com.plexapp.agents.audnexus/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoxMjMwOHM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczYKQXJ0aXN0czEwCm1lZGlhX3R5cGVzNDgKY29tLnBsZXhhcHAuYWdlbnRzLmF1ZG5leHVzOi8vQjAwMEFQN1ZJWT9sYW5nPWVuczQKZ3VpZHMxMApCMDAwQVA3VklZczIKaWRyMAo_ Jan 20, 2024 03:10:51.236 [140625196759864] Debug — Request: [127.0.0.1:53668 (Loopback)] GET /library/metadata/12308/tree (15 live) #5ce793 GZIP Signed-in Token (plex_user_hidden) Jan 20, 2024 03:10:51.250 [140625474157368] Debug — Completed: [127.0.0.1:53668] 200 GET /library/metadata/12308/tree (15 live) #5ce793 GZIP 13ms 4674 bytes Jan 20, 2024 03:10:52.854 [140625438268216] Debug — [HttpClient/HCl#351a] HTTP/1.1 (1.6s) 200 response from GET http://127.0.0.1:37093/:/plugins/com.plexapp.agents.audnexus/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoxMjMwOHM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczYKQXJ0aXN0czEwCm1lZGlhX3R5cGVzNDgKY29tLnBsZXhhcHAuYWdlbnRzLmF1ZG5leHVzOi8vQjAwMEFQN1ZJWT9sYW5nPWVuczQKZ3VpZHMxMApCMDAwQVA3VklZczIKaWRyMAo_ Jan 20, 2024 03:10:52.854 [140625203088184] Debug — [Req#5ce783] [com.plexapp.agents.audnexus] HTTP reply status 200, with 16 bytes of content. Jan 20, 2024 03:10:52.854 [140625474157368] Debug — Completed: [127.0.0.1:53660] 200 GET /:/plugins/com.plexapp.agents.audnexus/messaging/function/X0FnZW50S2l0OlVwZGF0ZU1ldGFkYXRh/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoxCmRpY3QKMTAKczIKZW5zNApsYW5nYjFzNQpmb3JjZWIwczgKcGVyaW9kaWNzNQoxMjMwOHM0CmRiaWRpMApzNwp2ZXJzaW9ubnMxMApwYXJlbnRHVUlEbnM4CnBhcmVudElEczYKQXJ0aXN0czEwCm1lZGlhX3R5cGVzNDgKY29tLnBsZXhhcHAuYWdlbnRzLmF1ZG5leHVzOi8vQjAwMEFQN1ZJWT9sYW5nPWVuczQKZ3VpZHMxMApCMDAwQVA3VklZczIKaWRyMAo_ (14 live) #5ce783 GZIP 1646ms 430 bytes Jan 20, 2024 03:10:52.957 [140625198869304] Debug — Request: [127.0.0.1:53684 (Loopback)] POST /:/metadata/notify?guid=com.plexapp.agents.audnexus%3A%2F%2FB000AP7VIY%3Flang%3Den&path=Artists%2F3%2F4dc4b0ab66c596970a78430dbb8e90a98325b1f.bundle&force=1&queueSize=0&id=12308&success=1&async=1 (14 live) #5ce79a GZIP Signed-in Token (plex_user_hidden) Jan 20, 2024 03:10:52.959 [140625198869304] Debug — [Req#5ce79a] Notification of new metadata for com.plexapp.agents.audnexus://B000AP7VIY?lang=en [id=12308] (success=1) for 1 items. Jan 20, 2024 03:10:52.960 [140625198869304] Debug — [Req#5ce79a] Loading artist 'Zig Ziglar' data directly. Jan 20, 2024 03:10:52.961 [140625198869304] Debug — [Req#5ce79a] Item 12308 (Zig Ziglar) Scanning metadata graphic elements in XML file ""/Info.xml Jan 20, 2024 03:10:52.970 [140625187261240] Debug — [Req#5ce79a/HCl#351b] HTTP requesting GET http://127.0.0.1:40437/system/agents/media/get?guid=com%2Eplexapp%2Eagents%2Eaudnexus%3A%2F%2FB000AP7VIY%3Flang%3Den&mediaType=8&url=metadata%3A%2F%2Fposters%2Fcom%2Eplexapp%2Eagents%2Eaudnexus_40e827f2bd1d149c50faecd99dbe7cb72b052708 Jan 20, 2024 03:10:52.979 [140625438268216] Debug — [HttpClient/HCl#351b] HTTP/1.1 (0.0s) 404 response from GET http://127.0.0.1:40437/system/agents/media/get?guid=com%2Eplexapp%2Eagents%2Eaudnexus%3A%2F%2FB000AP7VIY%3Flang%3Den&mediaType=8&url=metadata%3A%2F%2Fposters%2Fcom%2Eplexapp%2Eagents%2Eaudnexus_40e827f2bd1d149c50faecd99dbe7cb72b052708 (reused) Jan 20, 2024 03:10:52.979 [140625198869304] Error — [Req#5ce79a] Error bringing media local (metadata://posters/com.plexapp.agents.audnexus_40e827f2bd1d149c50faecd99dbe7cb72b052708). Jan 20, 2024 03:10:52.980 [140625198869304] Debug — [Req#5ce79a] Item 12308 (Zig Ziglar) Scanning metadata graphic elements in XML file ""/Info.xml Jan 20, 2024 03:10:52.982 [140625198869304] Debug — [Req#5ce79a] Item 12308 (Zig Ziglar) Scanning metadata graphic elements in XML file ""/Info.xml Jan 20, 2024 03:10:52.987 [140625198869304] Debug — [Req#5ce79a] Loaded metadata for Zig Ziglar (ID 12308) in 27ms Jan 20, 2024 03:10:53.002 [140625198869304] Debug — [Req#5ce79a] Done with metadata update for 12308 Jan 20, 2024 03:10:53.002 [140625198869304] Debug — [Req#5ce79a] Queueing up Zig Ziglar for refreshing children, there are 0 items in the queue. Jan 20, 2024 03:10:53.002 [140625185151800] Debug — [Req#5ce79a] Refreshing child items for item 12308 (Zig Ziglar) force: 1 Jan 20, 2024 03:10:53.002 [140625474157368] Debug — Completed: [127.0.0.1:53684] 200 POST /:/metadata/notify?guid=com.plexapp.agents.audnexus%3A%2F%2FB000AP7VIY%3Flang%3Den&path=Artists%2F3%2F4dc4b0ab66c596970a78430dbb8e90a98325b1f.bundle&force=1&queueSize=0&id=12308&success=1&async=1 (14 live) #5ce79a GZIP 46ms 166 bytes

theiamdude commented 8 months ago

I can also confirm that the data is does exist locally within plex and the file that plex fails to load does exist. So I am assuming the plugin is able to load the necessary data it looks for. The info.xml file is below:

<Artist id="B000AP7VIY_us">
  <rating/>
  <art/>
  <themes/>
  <duration/>
  <genres>
    <item index="0">Business &amp; Careers</item>
    <item index="1">Relationships, Parenting &amp; Personal Development</item>
    <item index="2">Religion &amp; Spirituality</item>
  </genres>
  <title>Zig Ziglar</title>
  <rating_count/>
  <collections/>
  <styles/>
  <tags/>
  <audience_rating_image/>
  <rating_image/>
  <audience_rating/>
  <moods/>
  <posters>
    <item external="True" url="https://images-na.ssl-images-amazon.com/images/S/amzn-author-media-prod/428rcfdd3ui5v45pfsutpubk68.__01_SX512_CR0,0,512,512__.jpg" media="40e827f2bd1d149c50faecd99dbe7cb72b052708"/>
  </posters>
  <albums/>
  <countries/>
  <title_sort>Ziglar, Zig</title_sort>
  <original_title/>
  <summary>The late Zig Ziglar was a motivational speaker, teacher and trainer who traveled the world over delivering his messages of humor, hope, and encouragement. As a world renowned author and speaker, Zig had an appeal that transcended barriers of age, culture and occupation. From 1970 until 2010, he traveled over five million miles across the world delivering powerful life improvement messages, cultivating the energy of change. Recognized by his peers as the quintessential motivational genius of our times, Zig Ziglar's unique delivery style and powerful messages earned him many honors, and today he is still considered one of the most versatile authorities on the science of human potential. Mr. Ziglar wrote over thirty celebrated books on personal growth, leadership, sales, faith, family and success, including Born to Win, See You at the Top, Developing the Qualities of Success, Raising Positive Kids in a Negative World, Top Performance, Courtship After Marriage, Over The Top, and Secrets of Closing the Sale. Nine titles have been on the best seller lists; his books and audios have been translated into over thirty-eight languages and dialects. Zig Ziglar was a committed family man, dedicated patriot, and an active church member.</summary>
  <reviews/>
  <similar>
    <item index="0">Brian Tracy</item>
    <item index="1">Dale Carnegie</item>
    <item index="2">Grant Cardone</item>
    <item index="3">Jeb Blount</item>
    <item index="4">Jim Rohn</item>
    <item index="5">John C. Maxwell</item>
    <item index="6">Napoleon Hill</item>
    <item index="7">Norman Vincent Peale</item>
  </similar>
  <concerts/>
</Artist>