How to use metadata from another plugin?

Greetings to all.

I'm writing small plugin, that loads information from russian site Kinopoisk.ru. The site stores information for Movies and Tv Shows.

I would like to load some metadata from Kinopoisk and rest from TvDb site.

 

When i connect my plugin and TheTvDb.bundle using accepts_from parametr i run into problem:

 

Kinopoisk has its own ID from Movie/Tv show and and therefore the TheTvDb plugin needs to search for show using title and year.

But it doesn't populate metadata. And in logs i found search request with "None" instead of show name

 

 

http://ajax.googleapis.com/ajax/services/search/web?v=1.0&rsz=large&q=None+site:imdb.com+tv+

 

In search function media.show is set to None. Whats wrong? Or maybe I misunderstood how to connect plugins.

Also i have TheMovieDB id (and using MessageKit:GetTvdbId i can get TheTvDb id), but i don't know how to pass it into TheTvDb plugin.

 

 

Logs

2015-03-24 14:48:19,499 (7fd5a77fe700) :  DEBUG (runtime:717) - Handling request GET /:/plugins/com.plexapp.agents.thetvdb/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo0CnMyCnJ1czQKbGFuZ3M3ClRWX1■■■3dzMTAKbWVkaWFfdHlwZWIwczYKbWFudWFscjEKczYKa3dhcmdzMwpzNDUKY29tLnBsZXhhcHAuYWdlbnRzLmtpbm9wb2lzazovLzU4MjMxND9sYW5nPXJ1czQKZ3VpZGIxczUKZm9yY2VzMjgKY29tLnBsZXhhcHAuYWdlbnRzLmtpbm9wb2lza3MxMwpwcmltYXJ5X2FnZW50cjAK
2015-03-24 14:48:19,538 (7fd5a77fe700) :  DEBUG (runtime:814) - Found route matching /:/plugins/com.plexapp.agents.thetvdb/messaging/function/X0FnZW50S2l0OlNlYXJjaA__/Y2VyZWFsMQoxCmxpc3QKMApyMAo_/Y2VyZWFsMQoyCmRpY3QKZGljdAo0CnMyCnJ1czQKbGFuZ3M3ClRWX1■■■3dzMTAKbWVkaWFfdHlwZWIwczYKbWFudWFscjEKczYKa3dhcmdzMwpzNDUKY29tLnBsZXhhcHAuYWdlbnRzLmtpbm9wb2lzazovLzU4MjMxND9sYW5nPXJ1czQKZ3VpZGIxczUKZm9yY2VzMjgKY29tLnBsZXhhcHAuYWdlbnRzLmtpbm9wb2lza3MxMwpwcmltYXJ5X2FnZW50cjAK
2015-03-24 14:48:19,539 (7fd5a77fe700) :  INFO (agentkit:923) - Searching for matches for {'guid': 'com.plexapp.agents.kinopoisk://582314?lang=ru', 'force': True, 'primary_agent': 'com.plexapp.agents.kinopoisk'}
2015-03-24 14:48:19,540 (7fd5a77fe700) :  DEBUG (accessor:68) - Creating a new read-only model access point for provider com.plexapp.agents.kinopoisk in namespace 'metadata'
2015-03-24 14:48:19,549 (7fd5a77fe700) :  DEBUG (model:32) - Loading model with GUID com.plexapp.agents.kinopoisk://582314?lang=ru
2015-03-24 14:48:19,553 (7fd5a77fe700) :  DEBUG (model:230) - Deserializing from /var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Metadata/TV Shows/1/3c75c35905a934f8f61842f04bd603523a5b02d.bundle/Contents/com.plexapp.agents.kinopoisk/Info.xml
2015-03-24 14:48:19,575 (7fd5a77fe700) :  DEBUG (networking:172) - Requesting 'http://meta.plex.tv/tv/guid/71/71f8e7976e4cbc4561c9d62fb283e7f788202acb.xml'
2015-03-24 14:48:25,496 (7fd5a77fe700) :  ERROR (networking:223) - Error opening URL 'http://meta.plex.tv/tv/guid/71/71f8e7976e4cbc4561c9d62fb283e7f788202acb.xml'
2015-03-24 14:48:25,496 (7fd5a77fe700) :  INFO (__init__:146) - HTTPError()
2015-03-24 14:48:25,500 (7fd5a77fe700) :  DEBUG (networking:172) - Requesting 'http://meta.plex.tv/tv/names/ru/71/71f8e7976e4cbc4561c9d62fb283e7f788202acb.xml'
2015-03-24 14:48:26,212 (7fd5a77fe700) :  ERROR (networking:223) - Error opening URL 'http://meta.plex.tv/tv/names/ru/71/71f8e7976e4cbc4561c9d62fb283e7f788202acb.xml'
2015-03-24 14:48:26,213 (7fd5a77fe700) :  INFO (__init__:389) - hitting search engines
2015-03-24 14:48:26,216 (7fd5a77fe700) :  DEBUG (threadkit:234) - Starting a parallel task set named hitSearchEngines with 4 tasks
2015-03-24 14:48:26,219 (7fd5c8ff9700) :  DEBUG (networking:172) - Requesting 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&rsz=large&q=None+"thetvdb.com"+series+'
2015-03-24 14:48:26,223 (7fd5a7fff700) :  DEBUG (networking:172) - Requesting 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&rsz=large&q=intitle:None+"thetvdb.com"+series+info+'
2015-03-24 14:48:26,226 (7fd5a67fc700) :  DEBUG (networking:172) - Requesting 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&rsz=large&q=None+site:imdb.com+tv+'
2015-03-24 14:48:26,229 (7fd5a5ffb700) :  DEBUG (networking:172) - Requesting 'http://ajax.googleapis.com/ajax/services/search/web?v=1.0&rsz=large&q=None+site:thetvdb.com+'
2015-03-24 14:48:32,271 (7fd5a77fe700) :  DEBUG (threadkit:244) - Parallel task set hitSearchEngines ended

I tried to use some other plugins. Same problem.