Getting properties from another plugin directorys listItem
#1
Hi!

I'm working on creating an addon that would run when the player starts, and will download the first sync sub from OpenSubtitles right away.
I've tried to use the json RPC api to get the directory (getDirectory method) plugin://service.subtitles.opensubtitles/... and get the list of subtitles. problem is, i can't see which of them is marked as synced.
I've looked at the opensubtitles plugin and saw that to define a result as sync they did:
listitem.setProperty( "sync", ("false", "true")[str(item_data["MatchedBy"]) == "moviehash"] )

but i couldn't find anywhere a way to access that property..


Any ideas how could i get more info from the getDirectory api (or any other method that could return the results from opensubtitles)?

Thanks!
Reply
#2
Probably trying to accomplish something that already exists?

http://forum.kodi.tv/showthread.php?tid=198973
Reply
#3
Thanks for the reply!
No, i am familiar with AutoSubs, problem with it is that it only opens the subtitles dialog. i would like to download the subtitle in the background without showing the dialog.. that's why i need to interact with the OpenSubtitles addon myself..
Reply

Logout Mark Read Team Forum Stats Members Help
Getting properties from another plugin directorys listItem0