def lsstv2(params): msg = "Resolviendo enlace ... " ref = params.get("url") data = plugintools.read(params.get("url")) data = data.replace('&', '&') data = data.replace('"', "'") #plugintools.log("LSS URL= "+data) thumbnail = params.get("thumbnail") title = params.get("meci") plot = params.get("plot") pattern = '\?(e=[^\'"]+)' match = plugintools.find_multiple_matches_multi_multi(data, pattern) match = sorted(list(set(match))) i = 1 for id in match: url = "http://www.livesportstreams.tv/es/player.php?" + id + "@" + ref url = url.strip() plugintools.log("LSS URL= " + url) title = "Link " + str(i) i += 1 #xbmc.executebuiltin('XBMC.RunPlugin('+url+')') #params['action'] = 'runPlugin' #plugintools.play_resolved_url(url) #xbmc.executebuiltin('XBMC.RunPlugin(' + url +')') #xbmc.Player(xbmc.PLAYER_CORE_MPLAYER).play(item=url) plugintools.add_item(action="lsstv3", title=title, plot=plot, url=url, thumbnail=thumbnail, isPlayable=True, folder=False)
def lsstv2(params): msg = "Resolviendo enlace ... " ref = params.get("url") data = plugintools.read( params.get("url") ) data = data.replace('&','&') data = data.replace('"',"'") #plugintools.log("LSS URL= "+data) thumbnail=params.get("thumbnail") title = params.get("meci") plot=params.get("plot") pattern = '\?(e=[^\'"]+)' match = plugintools.find_multiple_matches_multi_multi(data,pattern) match = sorted(list(set(match))) i=1 for id in match: url = "http://www.livesportstreams.tv/es/player.php?" + id + "@" + ref url=url.strip() plugintools.log("LSS URL= "+url) title = "Link " + str(i) i+=1 #xbmc.executebuiltin('XBMC.RunPlugin('+url+')') #params['action'] = 'runPlugin' #plugintools.play_resolved_url(url) #xbmc.executebuiltin('XBMC.RunPlugin(' + url +')') #xbmc.Player(xbmc.PLAYER_CORE_MPLAYER).play(item=url) plugintools.add_item( action="lsstv3" , title=title , plot=plot , url=url ,thumbnail=thumbnail , isPlayable=True, folder=False )
def lsstv1(params): data=plugintools.read(params.get("url")); pattern1 = 'onClick=\'showLinks\("event_", (.*?<img alt=".*?style="width: 40px;">.*?letter-spacing: 0px;">.*?<td rowspan=2 style="font-size:11px; font-style: italic; text-align: right;" title=\'[^\']+.)' pattern2 = '"([^"]+).*<img alt="([^"]+).*style="width: 40px;">([^<]+).*?letter-spacing: 0px;">([^<]+).*<td rowspan=2 style="font-size:11px; font-style: italic; text-align: right;" title=\'([^\']+)' pattern3 = "" match = plugintools.find_multiple_matches_multi_multi(data,pattern1) #for (i,id) in enumerate(match): match = sorted(list(set(match)))#array_unique !!! for ids in match: ''' thumbnail = "http://cdn-a.streamshell.net/images/icons/48x48px.png" #plugintools.log("TITLE"+ids)#print list of channels url = "http://www.livesportstreams.tv/es/player.php?e=" + ids + "&s=13&c=4" url = url.strip() plot = "" title = ids.capitalize() ''' matches = plugintools.find_multiple_matches_multi(ids,pattern2) for id, champ, ora, meci, lang in matches: thumbnail = "http://cdn-a.streamshell.net/images/icons/48x48px.png" url = "http://www.livesportstreams.tv/es/links.php?links=1&id=" + id url = url.strip() plugintools.log("URL:"+url)#print list of url #champ = champ.replace('futbol','') mec = "[COLOR=green]"+ ora + "[COLOR=yellow] : " + meci.upper() + " ([COLOR=red]" + lang.lower() + "[/COLOR][/COLOR][/COLOR]) :" + champ title = mec plot = "" #plugintools.log("cipq.webpage_play "+title)#print list of channels #uri = plugintools.find_single_match(data,rep) # Appends a new item to the xbmc item list plugintools.add_item( action="lsstv2" , title=title , plot=plot , url=url ,thumbnail=thumbnail , isPlayable=True, folder=True )
def dolce2(params): msg = "Resolviendo enlace ... " url = params.get("url") data = plugintools.read(params.get("url")) data = data.replace('&','&') data = data.replace('"',"'") #plugintools.log("LSS URL= "+url) thumbnail=params.get("thumbnail") title = params.get("title") plot=params.get("plot") pattern = '"high quality stream name":"([^"]+).*?token-low":"([^"]+).*?token-high":"([^"]+)' match = plugintools.find_multiple_matches_multi_multi(data,pattern) for name,low,high in match: plugintools.log("NAME= "+name) #plugintools.log("HIGH= "+high) plugintools.add_item( action="" , title=title , plot=plot , url=url ,thumbnail=thumbnail , isPlayable=False, folder=False )
def lsstv1(params): data = plugintools.read(params.get("url")) pattern1 = 'onClick=\'showLinks\("event_", (.*?<img alt=".*?style="width: 40px;">.*?letter-spacing: 0px;">.*?<td rowspan=2 style="font-size:11px; font-style: italic; text-align: right;" title=\'[^\']+.)' pattern2 = '"([^"]+).*<img alt="([^"]+).*style="width: 40px;">([^<]+).*?letter-spacing: 0px;">([^<]+).*<td rowspan=2 style="font-size:11px; font-style: italic; text-align: right;" title=\'([^\']+)' pattern3 = "" match = plugintools.find_multiple_matches_multi_multi(data, pattern1) #for (i,id) in enumerate(match): match = sorted(list(set(match))) #array_unique !!! for ids in match: ''' thumbnail = "http://cdn-a.streamshell.net/images/icons/48x48px.png" #plugintools.log("TITLE"+ids)#print list of channels url = "http://www.livesportstreams.tv/es/player.php?e=" + ids + "&s=13&c=4" url = url.strip() plot = "" title = ids.capitalize() ''' matches = plugintools.find_multiple_matches_multi(ids, pattern2) for id, champ, ora, meci, lang in matches: thumbnail = "http://cdn-a.streamshell.net/images/icons/48x48px.png" url = "http://www.livesportstreams.tv/es/links.php?links=1&id=" + id url = url.strip() plugintools.log("URL:" + url) #print list of url #champ = champ.replace('futbol','') mec = "[COLOR=green]" + ora + "[COLOR=yellow] : " + meci.upper( ) + " ([COLOR=red]" + lang.lower( ) + "[/COLOR][/COLOR][/COLOR]) :" + champ title = mec plot = "" #plugintools.log("cipq.webpage_play "+title)#print list of channels #uri = plugintools.find_single_match(data,rep) # Appends a new item to the xbmc item list plugintools.add_item(action="lsstv2", title=title, plot=plot, url=url, thumbnail=thumbnail, isPlayable=True, folder=True)
def dolce2(params): msg = "Resolviendo enlace ... " url = params.get("url") data = plugintools.read(params.get("url")) data = data.replace('&', '&') data = data.replace('"', "'") #plugintools.log("LSS URL= "+url) thumbnail = params.get("thumbnail") title = params.get("title") plot = params.get("plot") pattern = '"high quality stream name":"([^"]+).*?token-low":"([^"]+).*?token-high":"([^"]+)' match = plugintools.find_multiple_matches_multi_multi(data, pattern) for name, low, high in match: plugintools.log("NAME= " + name) #plugintools.log("HIGH= "+high) plugintools.add_item(action="", title=title, plot=plot, url=url, thumbnail=thumbnail, isPlayable=False, folder=False)