Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.GetSeasons", "params": {"tvshowid":%s }, "id": 1}' % tvshowid)
- json_response = re.compile( "{(.*?)}", re.DOTALL ).findall(json_query)
- findtotal = re.search( '"total": ?(.*)', json_response[0] )
- total = (findtotal.group(1))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement