Development - Plex metadata agent not working

Written at 02 Apr 2020 on 13:45 Edited at 02 Apr 2020 on 13:48

I've recently had to start my plex libraries from scratch, and have noticed that the agent to pull posters from this site doesn't seem to be working. I've looked in the logs, and discovered that the API call the agent is making returns: {“errors”:[“Limit of maximum 20000 requests per hour exceeded.”]}

I've also tried plugging the same inputs in here and it tells me Invalid secret.,Limit of maximum 20000 requests per hour exceeded. It also looks like I'm not the only one having this issue.

Is this by design or oversight, something I can change somewhere from my side? I love the posters on this site, but I don't want to have to manually grab them for the thousands of films I have.

Thanks for any input.
Martin Owner

Written at 13 Apr 2020 on 12:28

This has been fixed last week!

Written at 16 Apr 2020 on 16:28 Edited at 16 Apr 2020 on 16:44

Thank you, the API is now returning something, but still doesn't seem to be adding posters to plex, as an example, I tried to run it with refreshing metadata for one film, the agent passes:

https://api.cinematerial.com/1/request.json?imdb_id=tt0453396&key=plex&secret=raZ/lLYAO4B/k&width=720&thumb_width=100

Which returns:

{"imdb":"0453396","title":"Samurai Commando","year":"2005","page":"https://www.cinematerial.com/movies/samurai-commando-i453396","posters":[{"language":"JP","image_location":"cache/big/96/tt0453396/46396_720.jpg?api_key=plex&secret=raZ/lLYAO4B/k"},{"language":"KR","image_location":"cache/big/96/tt0453396/154120_720.jpg?api_key=plex&secret=raZ/lLYAO4B/k"},{"language":"BR","image_location":"cache/big/96/tt0453396/243294_720.jpg?api_key=plex&secret=raZ/lLYAO4B/k"}]}

But doesn't add anything to plex. You can't see it when I post here, but I notice it's adding a backslash wherever there is a forward slash, is that an issue?

My logs from plex also give me this:

CRITICAL (agentkit:1095) - Exception in the update function of agent named 'CineMaterial', called with guid 'com.plexapp.agents.imdb://tt0453396?lang=en' (most recent call last):
File "/mnt/HD/HD_a2/Nas_Prog/plexmediaserver/binaries/Resources/Plug-ins-2de7f3266/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1093, in _update
agent.update(obj, media, lang, **kwargs)
File "/mnt/HD/HD_a2/Nas_Prog/plexmediaserver/binaries/Resources/Plug-ins-2de7f3266/MoviePosterDB.bundle/Contents/Code/__init__.py", line 48, in update
valid_names.append(self.add_poster(metadata, secret, json_obj['posters'][0], i))
File "/mnt/HD/HD_a2/Nas_Prog/plexmediaserver/binaries/Resources/Plug-ins-2de7f3266/MoviePosterDB.bundle/Contents/Code/__init__.py", line 55, in add_poster
thumb_url = poster['thumbnail_location']
File "/mnt/HD/HD_a2/Nas_Prog/plexmediaserver/binaries/Resources/Plug-ins-2de7f3266/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 108, in
_getitem_ = lambda x, y: x.__getitem__(y),
KeyError: 'thumbnail_location

I notice the API is not passing a thumbnail location, could this be a cause?

Written at 23 Jun 2021 on 03:46

phillywilly wrote:
Thank you, the API is now returning something, but still doesn't seem to be adding posters to plex, as an example, I tried to run it with refreshing metadata for one film, the agent passes:

https://api.cinematerial.com/1/request.json?imdb_id=tt0453396&key=plex&secret=raZ/lLYAO4B/k&width=720&thumb_width=100 slope game

Which returns:

{"imdb":"0453396","title":"Samurai Commando","year":"2005","page":"https://www.cinematerial.com/movies/samurai-commando-i453396","posters":[{"language":"JP","image_location":"cache/big/96/tt0453396/46396_720.jpg?api_key=plex&secret=raZ/lLYAO4B/k"},{"language":"KR","image_location":"cache/big/96/tt0453396/154120_720.jpg?api_key=plex&secret=raZ/lLYAO4B/k"},{"language":"BR","image_location":"cache/big/96/tt0453396/243294_720.jpg?api_key=plex&secret=raZ/lLYAO4B/k"}]}

But doesn't add anything to plex. You can't see it when I post here, but I notice it's adding a backslash wherever there is a forward slash, is that an issue?

My logs from plex also give me this:

CRITICAL (agentkit:1095) - Exception in the update function of agent named 'CineMaterial', called with guid 'com.plexapp.agents.imdb://tt0453396?lang=en' (most recent call last):
File "/mnt/HD/HD_a2/Nas_Prog/plexmediaserver/binaries/Resources/Plug-ins-2de7f3266/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/api/agentkit.py", line 1093, in _update
agent.update(obj, media, lang, **kwargs)
File "/mnt/HD/HD_a2/Nas_Prog/plexmediaserver/binaries/Resources/Plug-ins-2de7f3266/MoviePosterDB.bundle/Contents/Code/__init__.py", line 48, in update
valid_names.append(self.add_poster(metadata, secret, json_obj['posters'][0], i))
File "/mnt/HD/HD_a2/Nas_Prog/plexmediaserver/binaries/Resources/Plug-ins-2de7f3266/MoviePosterDB.bundle/Contents/Code/__init__.py", line 55, in add_poster
thumb_url = poster['thumbnail_location']
File "/mnt/HD/HD_a2/Nas_Prog/plexmediaserver/binaries/Resources/Plug-ins-2de7f3266/Framework.bundle/Contents/Resources/Versions/2/Python/Framework/code/sandbox.py", line 108, in
_getitem_ = lambda x, y: x.__getitem__(y),
KeyError: 'thumbnail_location

I notice the API is not passing a thumbnail location, could this be a cause?


Yeah it actually does[/b]