moved videonodes code to seperate class

This commit is contained in:
Marcel van der Veldt 2015-05-06 23:24:13 +02:00
parent e76bf71591
commit d4e44122ba
4 changed files with 326 additions and 309 deletions

View file

@ -273,7 +273,6 @@ def getNextUpEpisodes(tagname,limit):
xbmcplugin.setContent(int(sys.argv[1]), 'episodes')
# First we get a list of all the in-progress TV shows - filtered by tag
json_query_string = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.GetTVShows", "params": { "sort": { "order": "descending", "method": "lastplayed" }, "filter": {"and": [{"operator":"true", "field":"inprogress", "value":""}, {"operator": "contains", "field": "tag", "value": "%s"}]}, "properties": [ "title", "studio", "mpaa", "file", "art" ] }, "id": "libTvShows"}' %tagname)
print json_query_string
json_result = json.loads(json_query_string)
# If we found any, find the oldest unwatched show for each one.