2014-12-11, 00:05
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!
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!