tjoskar / script.episodeHunter

Kodi (aka. XBMC) plugin for Episodehunter
GNU General Public License v2.0
12 stars 0 forks source link

Two way sync #11

Closed tjoskar closed 9 years ago

tjoskar commented 9 years ago

Be able to sync your watch history on EH with xbmc.

I beleve that this would do the trick:

for episode in episodes_that_are_markt_as_watched_on_EH_but_not_in_xbmc:
    xbmc.executeJSONRPC({
        "jsonrpc": "2.0",
        "method": "VideoLibrary.SetEpisodeDetails",
        "params": {
            "episodeid": episode.id,
            "playcount": 1
        }
    })