SHARE
TWEET

Untitled

a guest Jan 20th, 2019 621 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def get_video_url(url):
  2.     videos = []
  3.     params = []
  4.     addon_log(url)
  5.     xbmc.log(url, level=xbmc.LOGWARNING)
  6.     quality = (Addon.getSetting('qualityType')).lower()
  7.     resp = api_hotstar_request(url, auth=True)    
  8.     manifest1 = resp['body']['results']['item']['playbackUrl']
  9.     addon_log('manifest1 is, '+manifest1)
  10.  
  11.     if 'hsprepack' in manifest1:
  12.         listitem =xbmcgui.ListItem('name')
  13.         listitem.setPath(manifest1)
  14.         xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, listitem)
  15.         setView('movies', 'movie-view')
  16.         xbmcplugin.endOfDirectory(int(sys.argv[1]), cacheToDisc=True)    
  17.  
  18.         if 1 == 1:
  19.             return
  20.  
  21.     islive=False
  22.     if '/videos/' not in manifest1:
  23.         islive=True
  24.         quality='let me choose'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top