Advertisement
Guest User

Untitled

a guest
Nov 4th, 2011
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. json_query = xbmc.executeJSONRPC('{"jsonrpc": "2.0", "method": "VideoLibrary.GetSeasons", "params": {"tvshowid":%s }, "id": 1}' % tvshowid)
  2. json_response = re.compile( "{(.*?)}", re.DOTALL ).findall(json_query)
  3. findtotal = re.search( '"total": ?(.*)', json_response[0] )
  4. total = (findtotal.group(1))
  5.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement