Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def get_video_url(url):
- videos = []
- params = []
- addon_log(url)
- xbmc.log(url, level=xbmc.LOGWARNING)
- quality = (Addon.getSetting('qualityType')).lower()
- resp = api_hotstar_request(url, auth=True)
- manifest1 = resp['body']['results']['item']['playbackUrl']
- addon_log('manifest1 is, '+manifest1)
- if 'hsprepack' in manifest1:
- listitem =xbmcgui.ListItem('name')
- listitem.setPath(manifest1)
- xbmcplugin.setResolvedUrl(int(sys.argv[1]), True, listitem)
- setView('movies', 'movie-view')
- xbmcplugin.endOfDirectory(int(sys.argv[1]), cacheToDisc=True)
- if 1 == 1:
- return
- islive=False
- if '/videos/' not in manifest1:
- islive=True
- quality='let me choose'
Add Comment
Please, Sign In to add comment