Cannot read model from...

metadata agent
I'm writing a custom metadata agent to pull metadata about movies from a new site.

I copied an existing module and rewrote the "search" and "update" functions. The search seems to be working- I can resolve movies against the site's search feature, and it is replacing the title of the movie in my library to match the site. The update function is working according to the logs, but I don't get the metadata updated in my library.

Looking into the issue further, I see the following error in my Plugin's Log:


<br />
2013-01-12 14:53:50,849 (-4faed000) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.<my package name>://<a metadata id><br />
2013-01-12 14:53:50,850 (-4faed000) :  ERROR (model:194) - Cannot read model from /Users/<my user name>/Library/Application Support/Plex Media Server/Metadata/Movies/b/f4a4a40fed05f<br />
835e1a112b0f8799d7b0e170b9.bundle/Contents/com.plexapp.agents.<my package><br />




Has anyone else encountered this issue?

I think I’ve made some progress-



I’m no longer getting that error. The log now indicates that the data is serializing to the file:



<br />
2013-01-12 17:34:07,015 (-4faed000) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.<myagent>://<an id><br />
2013-01-12 17:34:07,018 (-4faed000) :  DEBUG (model:223) - Deserializing from /Users/<my user name>/Library/Application Support/Plex Media Server/Metadata/Movies/b/00b8b7ec689e2cde37e4b729fdff8b4b69dba4a.bundle/Contents/com.plexapp.agents.<myagent>/Info.xml<br />
2013-01-12 17:34:07,038 (-4faed000) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/library/metadata/4894/tree'<br />
2013-01-12 17:34:07,051 (-4faed000) :  DEBUG (networking:161) - Fetching '<A URL>' from the HTTP cache<br />
2013-01-12 17:34:07,073 (-4faed000) :  INFO (__init__:59) - Looking up metadata for <an id><br />
2013-01-12 17:34:07,088 (-4faed000) :  DEBUG (model:218) - Serializing to /Users/<my user name>/Library/Application Support/Plex Media Server/Metadata/Movies/b/00b8b7ec689e2cde37e4b729fdff8b4b69dba4a.bundle/Contents/com.plexapp.agents.<myagent>/Info.xml<br />




And when I view that xml document I see the updated summary and other attributes. However this summary still does not display on my plex library web view or plex client.

Did you ever get this fixed??

Having the same problem atm, anyone got an idea how to solve this?

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