[Agent@alpha] Plex metadata is not updating

Hello!

 

I am currently developing an agent but have now encountered a problem. I have tried to debug myself but have not been able to find the error. I am now looking for some help.
 
My search functions works perfectly, it displays the results and the ID is saved as mentioned on the development site. The problem occurs when I choose one of the search results. The update function fetches all the necessary information and populates the metadata object but the information does not seem to be updated on the server.
 
 

Agent log

2014-01-01 23:53:56,262 (7fcaea7fc700) :  DEBUG (networking:167) - Fetching 'http://www.********.***/**/work/wk1010350/'from the HTTP cache
2014-01-01 23:53:56,281 (7fcaea7fc700) :  DEBUG (preferences:256) - Loaded preferences from DefaultPrefs.json
2014-01-01 23:53:56,282 (7fcaea7fc700) :  DEBUG (preferences:178) - Loaded the user preferences for com.plexapp.agents.elcinema
..... SOME DEBUGG TEXT ........
2014-01-01 23:53:56,296 (7fcaea7fc700) :  DEBUG (model:218) - Serializing to /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/Movies/b/a5df720f42c009832878a0f33ad4faabde90b62.bundle/Contents/com.plexapp.agents.elcinema/Info.xml
2014-01-01 23:53:56,297 (7fcaea7fc700) :  DEBUG (runtime:915) - Response: [200] str, 16 bytes

# Update

 

It seems that only the title of the movie being updated.

The problem is solved now, for others who might encounter the same error, this may be the solution.
 
The error was that the ID (metadata.id), which identify the median update. It may not contain characters like '/'. In my case, my string "/ work/wk0000", I adjusted the string to "wk0000". This is a bit misleading when it says in the documentation:
 
"A string That uniquely identifies the metadata. This can be in any format. The provided value will be passed to the update method if the metadata needs to be downloaded, so the developer should ensure that the value can be used later to access the metadata without the provided hints."

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.