def LivestationList(murl): main.GA("Live","Livestation") link=main.OPENURL('https://github.com/mash2k3/MashUpStreams/raw/master/livestation.xml') link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','') match=re.compile('<title>([^<]+)</title.+?link>([^<]+)</link.+?thumbnail>([^<]+)</thumbnail>').findall(link) for name,url,thumb in sorted(match): main.addPlayL(name,url,118,thumb,'','','','','')
def MAIN(): main.GA("Live", "ArabicStreams") html = _html('http://www.teledunet.com/') items = _parse_channels_from_html_dom(html) for channels in sorted(items): main.addPlayL(channels['title'], channels['path'], 232, channels['thumbnail'], '', '', '', '', '')
def COUNTRIESList(mname, murl): main.GA("Countries-" + mname, "Watched") link = main.OPENURL(murl) link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace( ' ', '').replace( 'type=playlistname=Sorted by user-assigned order', '').replace( 'name=Sorted [COLOR=FF00FF00]by user-assigned order[/COLOR]', '').replace('name=Live Tv Channels Twothumb', '') match = re.compile( '<title>([^<]+)</title.+?link>(.+?)</link.+?thumbnail>([^<]+)</thumbnail>', re.DOTALL).findall(link) for name, url, thumb in sorted(match): main.addPlayL(name, url, 204, thumb, '', '', '', '', '', secName='By Country', secIcon=art + '/countrysec.png') main.VIEWSB()
def MUSICSTREAMS(): main.GA("MUSIC-Streams","List") link=main.OPENURL('https://raw.github.com/crusader88/MashUpStreams/master/playlists/musicstreams2.xml') link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','') match=re.compile('<item><titl[^>]+>([^<]+)</title><link>(.+?)</link><thumbnail>(.+?)</thumbnail></item>').findall(link) for name,url,thumb in sorted(match): main.addPlayL(name,url,184,thumb,'','','','','',secName='Music Streams',secIcon=art+'/miscmusic.png')
def CastalbaList(murl): try: urllist=['http://castalba.tv/channels/p=1','http://castalba.tv/channels/p=2'] except: urllist=['http://castalba.tv/channels/p=1','http://castalba.tv/channels/p=2'] dialogWait = xbmcgui.DialogProgress() ret = dialogWait.create('Please wait until channel list is loaded.') totalLinks = len(urllist) loadedLinks = 0 remaining_display = 'Pages loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].' dialogWait.update(0,'[B]Loading.....[/B]',remaining_display) for durl in urllist: link=main.OPENURL(durl) link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','') match=re.compile('<li><div class=".+?"><a href=".+?"><img src="(.+?)" alt=""/><.+?><a href=".+?class=".+?" href="(.+?)">(.+?)</a></h4>.+?<a href=".+?" class=".+?">(.+?)</a></p></li>').findall(link) for thumb,url,name,section in match: if name != 'Playboy TV': url=url.replace('..','') thumb=thumb.replace('..','') main.addPlayL(name+' [COLOR red]'+section+'[/COLOR]','http://castalba.tv'+url,123,'http://castalba.tv'+thumb,'','','','','',secName='Castalba',secIcon=art+'/castalba.png') loadedLinks = loadedLinks + 1 percent = (loadedLinks * 100)/totalLinks remaining_display = 'Pages loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].' dialogWait.update(percent,'[B]Loading.....[/B]',remaining_display) if (dialogWait.iscanceled()): return False dialogWait.close() del dialogWait main.GA("Castalba","List")
def LISTCONTENT(murl, thumb): setCookie(murl) response = net().http_GET(murl) link = response.content link = cleanHex(link) link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace( ' ', '').replace(' ', '') if 'http://hostaccess.org/7-SFE-SZE-HOSTACCESS/media/vod.php' == murl: response = net().http_GET( 'http://sportsaccess.se/forum/misc.php?page=Replays') link = response.content link = cleanHex(link) link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace( ' ', '').replace(' ', '') match = re.compile( '<a href="([^"]+)"><img src="([^"]+)" width=".+?alt="([^"]+)"></a>' ).findall(link) for url, thumb, name in match: if 'http' not in thumb: thumb = 'http://sportsaccess.se/forum/' + thumb main.addDir(name, url, 411, thumb) else: match = re.compile('<a href="(.+?)">(.+?)</a>').findall(link) for url, name in match: if 'GO BACK' not in name and '1 Year Subscriptions' not in name and 'Live Broadcasts' not in name and '<--- Return To On Demand Guide' not in name: name = re.sub('(?sim)<[^>]*?>', '', name) if 'http' not in url: url = 'http://sportsaccess.se' + url main.addPlayL(name, url, 413, thumb, '', '', '', '', '')
def LISTCONTENT(murl,thumb): setCookie(murl) response = net().http_GET(murl) link = response.content link = cleanHex(link) link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','').replace(' ','') if 'http://hostaccess.org/7-SFE-SZE-HOSTACCESS/media/vod.php' == murl: response = net().http_GET('http://sportsaccess.se/forum/misc.php?page=Replays') link = response.content link = cleanHex(link) link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','').replace(' ','') match=re.compile('<a href="([^"]+)"><img src="([^"]+)" width=".+?alt="([^"]+)"></a>').findall(link) for url,thumb,name in match: if 'http' not in thumb: thumb='http://sportsaccess.se/forum/'+thumb main.addDir(name,url,411,thumb) else: match=re.compile('<a href="(.+?)">(.+?)</a>').findall(link) for url,name in match: if 'GO BACK' not in name and '1 Year Subscriptions' not in name and 'Live Broadcasts' not in name and '<--- Return To On Demand Guide' not in name: name = re.sub('(?sim)<[^>]*?>','',name) if 'http' not in url: url='http://sportsaccess.se'+url main.addPlayL(name,url,413,thumb,'','','','','')
def VIPList(mname,murl): link=main.OPENURL(murl) link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','') r=re.findall('<poster>(.+?)</poster>',link) if r: vip=r[0] else: vip='Unknown' f=re.findall('<fanart>(.+?)</fanart>',link) if f: fan=f[0] else: fan=art+'/fanart2.jpg' info=re.findall('<info><message>(.+?)</message><thumbnail>(.+?)</thumbnail></info>',link) if info: for msg,pic in info: main.addLink(msg,'',pic) popup=re.compile('<popup><name>([^<]+)</name.+?popImage>([^<]+)</popImage.+?thumbnail>([^<]+)</thumbnail></popup>').findall(link) for name,image,thumb in popup: main.addPlayc(name,image,244,thumb,'','','','','') directory=re.compile('<dir><name>([^<]+)</name.+?link>([^<]+)</link.+?thumbnail>([^<]+)</thumbnail></dir>').findall(link) for name,url,thumb in directory: main.addDir(name,url,182,thumb) match=re.compile('<title>([^<]+)</title.+?link>(.+?)</link.+?thumbnail>([^<]+)</thumbnail>').findall(link) for name,url,thumb in sorted(match): main.addPlayL(name+' [COLOR blue]'+vip+'[/COLOR]',url,183,thumb,'',fan,'','','',secName=vip,secIcon=art+'/'+vip.lower()+'.png') main.GA(vip+"-Playlists",mname)
def LISTMENU(murl): match=re.findall('(?sim)<li><a href="([^"]+?)" target="I1">([^<]+?)</a></li>',murl) if not match: match=re.findall('(?sim)<a href="([^"]+?)" target="I1"><img src="([^"]+?)"',murl) for url,name in match: url = 'http://www.hqzone.tv/forums/'+url main.addPlayL(name,url,474,'','','','','','')
def LISTCONTENT(murl,thumb): setCookie(murl) response = net().http_GET(murl) link = response.content link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','').replace(' ','') match=re.findall('(?sim)sources: \[\{ file: "([^"]+?)" \}\],title: "([^"]+?)"',link) for url,name in match: main.addPlayL(name,url,474,'','','','','','')
def COUNTRIESList(mname,murl): main.GA("Countries-"+mname,"Watched") link=main.OPENURL(murl) link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','').replace('type=playlistname=Sorted by user-assigned order','').replace('name=Sorted [COLOR=FF00FF00]by user-assigned order[/COLOR]','').replace('name=Live Tv Channels Twothumb','') match=re.compile('<title>([^<]+)</title.+?link>([^<]+)</link.+?thumbnail>([^<]+)</thumbnail>').findall(link) for name,url,thumb in sorted(match): main.addPlayL(name,url,204,thumb,'','','','','') main.VIEWSB()
def TubTubMAIN(murl): main.GA("TubTub","List") main.addLink('[COLOR red]Classics, Very Old Content[/COLOR]','','') thumb=art+'/tubtub.png' link=main.OPENURL(murl) link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','') match=re.compile("""<a href="mms://(.+?)" .+?>([^<]+)</span></a>""").findall(link) for url,name in match: main.addPlayL(name,'http://'+url,186,thumb,'','','','','')
def MUSICSTREAMS(): main.GA("MUSIC-Streams", "List") link = main.OPENURL("https://github.com/mash2k3/MashUpStreams/raw/master/playlists/musicstreams2.xml") link = link.replace("\r", "").replace("\n", "").replace("\t", "").replace(" ", "") match = re.compile("<item><titl[^>]+>([^<]+)</title><link>(.+?)</link><thumbnail>(.+?)</thumbnail></item>").findall( link ) for name, url, thumb in sorted(match): main.addPlayL(name, url, 184, thumb, "", "", "", "", "")
def LISTFM(mname,murl): main.GA("181fm","List") if xbmc.Player().isPlayingAudio(): main.addPlayc('[COLOR red]Download Current Track Playing[/COLOR]','dummy', 213 ,art+"hubmusic.png",'','','','','') main.addPlayc('[COLOR red]Search Current Artist Playing[/COLOR]','dummy', 214,art+"hubmusic2.png",'','','','','') image=mname.replace(' ','%20') thumb=art+'/'+"%s.png"%(image) match = re.compile('<a STYLE="text-decoration:none" href="(.+?)" class="left_link">(.+?)</a></font></td>').findall(murl) for url,name in match: main.addPlayL(name,url,193,thumb,'','','','','')
def LivestationLink(mname,murl,thumb): link=main.OPENURL(murl) link=link.replace('href="/en/sessions/new','').replace('href="/en/contacts/new">','').replace('href="/redirect?locale=en">','') link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','') match= re.compile('<li><a href="(.+?)">(.+?)</a></li>').findall(link) if len(match)>1: for url, name in match: main.addPlayL(mname+' '+name,'http://mobile.livestation.com'+url,118,thumb,'','','','','') else: LivestationLink2(mname,murl,thumb)
def LISTFM(mname,murl): main.GA("181fm","List") if xbmc.Player().isPlayingAudio(): main.addPlayc('[COLOR red]Download Current Track Playing[/COLOR]','dummy', 213 ,art+"hubmusic.png",'','','','','') main.addPlayc('[COLOR red]Search Current Artist Playing[/COLOR]','dummy', 214,art+"hubmusic2.png",'','','','','') thumb=art+"%s.png"%(mname) print "kk "+thumb match = re.compile('<a STYLE="text-decoration:none" href="(.+?)" class="left_link">(.+?)</a></font></td>').findall(murl) for url,name in match: main.addPlayL(name,url,193,thumb,'','','','','')
def LivestationList(murl): main.GA("Live","Livestation") link=main.OPENURL('http://www.livestation.com/en/channels') link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','') match=re.compile('''<a href="([^"]+?)" class=".+?" data-action=".+?<img alt=".+?" itemprop=".+?" src="([^"]+?)" title="([^"]+?)" /></a>(.+?)<div id='channel_description'><p>([^<]+?)</p></div>''').findall(link) for url,thumb,name,data,desc in sorted(match): if 'language_selector' in url: main.addPlayL(name,data,118,thumb,'','','','','',secName='Livestation News',secIcon=art+'/livestation.png') else: url='http://www.livestation.com'+url main.addPlayL(name,url,118,thumb,'','','','','',secName='Livestation News',secIcon=art+'/livestation.png')
def LivestationList(murl): #main.GA("Live","Livestation") link=main.OPENURL('http://www.livestation.com/en/channels') link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','') match=re.compile('''<a href="([^"]+?)" class=".+?" data-action=".+?<img alt=".+?" itemprop=".+?" src="([^"]+?)" title="([^"]+?)" /></a>(.+?)<div id='channel_description'><p>([^<]+?)</p></div>''').findall(link) for url,thumb,name,data,desc in sorted(match): if 'language_selector' in url: main.addPlayL(name,data,118,thumb,'','','','','',secName='Livestation News',secIcon=art+'/livestation.png') else: url='http://www.livestation.com'+url main.addPlayL(name,url,118,thumb,'','','','','',secName='Livestation News',secIcon=art+'/livestation.png')
def LISTCONTENT(murl,thumb): response = net().http_GET(murl) link = response.content link = cleanHex(link) link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','').replace(' ','') match=re.compile('<a href="(.+?)">(.+?)</a>').findall(link) for url,name in match: if 'GO BACK' not in name and '1 Year Subscriptions' not in name and 'Live Broadcasts' not in name: name = re.sub('(?sim)<[^>]*?>','',name) if 'http' not in url: url='http://sportsaccess.se'+url main.addPlayL(name,url,413,thumb,'','','','','')
def TubTubMAIN(murl): main.GA("TubTub", "List") main.addLink('[COLOR red]Classics, Very Old Content[/COLOR]', '', '') thumb = art + '/tubtub.png' link = main.OPENURL(murl) link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(' ', '') match = re.compile( """<a href="mms://(.+?)" .+?>([^<]+)</span></a>""").findall(link) for url, name in match: main.addPlayL(name, 'http://' + url, 186, thumb, '', '', '', '', '')
def LivestationList(murl): main.GA("Live", "Livestation") link = main.OPENURL( 'https://github.com/mash2k3/MashUpStreams/raw/master/livestation.xml') link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(' ', '') match = re.compile( '<title>([^<]+)</title.+?link>([^<]+)</link.+?thumbnail>([^<]+)</thumbnail>' ).findall(link) for name, url, thumb in sorted(match): main.addPlayL(name, url, 118, thumb, '', '', '', '', '')
def MUSICSTREAMS(): main.GA("MUSIC-Streams", "List") link = main.OPENURL( 'https://github.com/mash2k3/MashUpStreams/raw/master/playlists/musicstreams2.xml' ) link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(' ', '') match = re.compile( '<item><titl[^>]+>([^<]+)</title><link>(.+?)</link><thumbnail>(.+?)</thumbnail></item>' ).findall(link) for name, url, thumb in sorted(match): main.addPlayL(name, url, 184, thumb, '', '', '', '', '')
def MAIN(): main.GA("Live", "ArabicStreams") items = _parse_channels_from_html_dom('http://www.teledunet.com/') for channels in sorted(items): main.addPlayL(channels['title'], channels['path'], 232, channels['thumbnail'], '', '', '', '', '', secName='Arabic Streams', secIcon=art + '/arabicstream.png')
def VIPList(mname, murl): link = main.OPENURL(murl) link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(' ', '') r = re.findall('<poster>(.+?)</poster>', link) if r: vip = r[0] else: vip = 'Unknown' f = re.findall('<fanart>(.+?)</fanart>', link) if f: fan = f[0] else: fan = art + '/fanart2.jpg' info = re.findall( '<info><message>(.+?)</message><thumbnail>(.+?)</thumbnail></info>', link) if info: for msg, pic in info: main.addLink(msg, '', pic) popup = re.compile( '<popup><name>([^<]+)</name.+?popImage>([^<]+)</popImage.+?thumbnail>([^<]+)</thumbnail></popup>' ).findall(link) for name, image, thumb in popup: main.addPlayc(name, image, 244, thumb, '', '', '', '', '') directory = re.compile( '<dir><name>([^<]+)</name.+?link>([^<]+)</link.+?thumbnail>([^<]+)</thumbnail></dir>' ).findall(link) for name, url, thumb in directory: main.addDir(name, url, 182, thumb) match = re.compile( '<title>([^<]+)</title.+?link>(.+?)</link.+?thumbnail>([^<]+)</thumbnail>' ).findall(link) for name, url, thumb in sorted(match): main.addPlayL(name + ' [COLOR blue]' + vip + '[/COLOR]', url, 183, thumb, '', fan, '', '', '', secName=vip, secIcon=art + '/' + vip.lower() + '.png') main.GA(vip + "-Playlists", mname)
def MAIN(): main.addLink('[COLOR yellow]Time Zone:[/COLOR] [COLOR orange]'+tzname+'[/COLOR]','',art+'/kiwi.png') main.addSpecial('[COLOR blue]Change Time Zone[/COLOR]','tz',440,art+'/kiwi.png') main.addDir('[COLOR orange]****** All Streams ******[/COLOR]','tz',442,art+'/kiwi.png') link=main.OPENURL('http://www.coolsport.tv/schedule-coolsport-tv.html') link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','') match=re.compile('<font color="red" size="6">(.+?)</font><p>(.*?)size="6').findall(link) for date,streams in match: main.addLink('[COLOR red]'+date+'[/COLOR]','',art+'/twittermash.png') match2=re.compile('(?sim)<font color="gold"> ([^<]+) </font> (.+?) (\d+.\d+\D+)-(\d+.\d+\D+) <font color="red">(.+?)</font><p>').findall(streams) for lang,name,t1,t2,url in match2: t1=CleanTime(t1) t2=CleanTime(t2) #url=url.lower().replace(' ','').replace('skysports','ss') name = name.decode("ascii", "ignore") main.addPlayL('[COLOR orange]'+lang+'[/COLOR] '+name+' [COLOR yellow]'+t1+' - '+t2+'[/COLOR] [COLOR red]'+url+'[/COLOR]','http://www.coolsport.tv/'+url.lower().replace(' ','')+'.html',441,'','','','','','',secName='Kiwi',secIcon=art+'/kiwi.png')
def LIST(mname, murl): items = [] i = 0 f = open(murl) text = f.read() name = re.findall('<title>([^<]+)</title>', text) for names in name: name = re.findall('<title>([^<]+)</title>', text) url = re.findall('<link>([^<]+)</link>', text) thumb = re.findall('<thumbnail>([^<]+)</thumbnail>', text) items.append({'title': name[i], 'thumbnail': thumb[i], 'path': url[i]}) print name[i] i = i + 1 for channels in items: main.addPlayL(channels['title'], channels['path'], 240, channels['thumbnail'], '', '', '', '', '')
def MAIN(): main.addLink('[COLOR yellow]Time Zone:[/COLOR] [COLOR orange]'+tzname+'[/COLOR]','',art+'/kiwi.png') main.addSpecial('[COLOR blue]Change Time Zone[/COLOR]','tz',440,art+'/kiwi.png') main.addDir('[COLOR orange]****** All Streams ******[/COLOR]','tz',442,art+'/kiwi.png') link=main.OPENURL('http://www.coolsport.se') link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','') match=re.compile('<font color="red" size="6">(.+?)</font><p>(.*?)size="6').findall(link) for date,streams in match: main.addLink('[COLOR red]'+date+'[/COLOR]','',art+'/twittermash.png') match2=re.compile("(?sim)<font color='.+?'> ([^<]+) -<font color='white'> (.+?) (\d+.\d+\D+)-(\d+.\d+\D+) </font></font><font color='red'>(.+?)</font>").findall(streams) #<font color='white'> (.+?) </font></font><font color='red'> (Stream 27) </font></a></li><p> for lang,name,t1,t2,url in match2: t1=CleanTime(t1) t2=CleanTime(t2) #url=url.lower().replace(' ','').replace('skysports','ss') name = name.decode("ascii", "ignore") main.addPlayL('[COLOR orange]'+lang+'[/COLOR] '+name+' [COLOR yellow]'+t1+' - '+t2+'[/COLOR] [COLOR red]'+url+'[/COLOR]',BASEURL+url.lower().replace('(','').replace(')','').replace(' ','')+'.html',441,'','','','','','',secName='Kiwi',secIcon=art+'/kiwi.png')
def LivestationLink(mname, murl, thumb): link = main.OPENURL(murl) link = link.replace('href="/en/sessions/new', '').replace('href="/en/contacts/new">', '').replace('href="/redirect?locale=en">', '') link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(' ', '') match = re.compile('<li><a href="(.+?)">(.+?)</a></li>').findall(link) if len(match) > 1: for url, name in match: main.addPlayL(mname + ' ' + name, 'http://mobile.livestation.com' + url, 118, thumb, '', '', '', '', '') else: LivestationLink2(mname, murl, thumb)
def LIST(mname,murl): items=[] i=0 f = open(murl) text = f.read() name=re.findall('<title>([^<]+)</title>',text) for names in name: name=re.findall('<title>([^<]+)</title>',text) url=re.findall('<link>([^<]+)</link>',text) thumb=re.findall('<thumbnail>([^<]+)</thumbnail>',text) items.append({ 'title': name[i], 'thumbnail': thumb[i], 'path': url[i] }) print name[i] i=i+1 for channels in items: main.addPlayL(channels['title'],channels['path'],240,channels['thumbnail'],'','','','','')
def COUNTRIESList(mname, murl): main.GA("Countries-" + mname, "Watched") link = main.OPENURL(murl) link = ( link.replace("\r", "") .replace("\n", "") .replace("\t", "") .replace(" ", "") .replace("type=playlistname=Sorted by user-assigned order", "") .replace("name=Sorted [COLOR=FF00FF00]by user-assigned order[/COLOR]", "") .replace("name=Live Tv Channels Twothumb", "") ) match = re.compile("<title>([^<]+)</title.+?link>(.+?)</link.+?thumbnail>([^<]+)</thumbnail>", re.DOTALL).findall( link ) for name, url, thumb in sorted(match): main.addPlayL(name, url, 204, thumb, "", "", "", "", "", secName="By Country", secIcon=art + "/countrysec.png") main.VIEWSB()
def LIST(url): link = main.OPENURL(url) link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(' ', '') match = re.compile( '<li><a target=".+?" href="([^"]+)">([^<]+)</a></li>').findall(link) for url, name in match: main.addPlayL(name, url, 445, '', '', '', '', '', '', secName='SportsPack', secIcon=art + '/spo.png')
def CastalbaList(murl): try: urllist = ["http://castalba.tv/channels/p=1", "http://castalba.tv/channels/p=2"] except: urllist = ["http://castalba.tv/channels/p=1", "http://castalba.tv/channels/p=2"] dialogWait = xbmcgui.DialogProgress() ret = dialogWait.create("Please wait until channel list is loaded.") totalLinks = len(urllist) loadedLinks = 0 remaining_display = "Pages loaded :: [B]" + str(loadedLinks) + " / " + str(totalLinks) + "[/B]." dialogWait.update(0, "[B]Loading.....[/B]", remaining_display) for durl in urllist: link = main.OPENURL(durl) link = link.replace("\r", "").replace("\n", "").replace("\t", "").replace(" ", "") match = re.compile( '<li><div class=".+?"><a href=".+?"><img src="(.+?)" alt=""/><.+?><a href=".+?class=".+?" href="(.+?)">(.+?)</a></h4>.+?<a href=".+?" class=".+?">(.+?)</a></p></li>' ).findall(link) for thumb, url, name, section in match: if name != "Playboy TV": url = url.replace("..", "") thumb = thumb.replace("..", "") main.addPlayL( name + " [COLOR red]" + section + "[/COLOR]", "http://castalba.tv" + url, 123, "http://castalba.tv" + thumb, "", "", "", "", "", ) loadedLinks = loadedLinks + 1 percent = (loadedLinks * 100) / totalLinks remaining_display = "Pages loaded :: [B]" + str(loadedLinks) + " / " + str(totalLinks) + "[/B]." dialogWait.update(percent, "[B]Loading.....[/B]", remaining_display) if dialogWait.iscanceled(): return False dialogWait.close() del dialogWait main.GA("Castalba", "List")
def VIPList(mname,murl): link=main.OPENURL(murl) link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','') r=re.findall('<poster>(.+?)</poster>',link) if r: vip=r[0] else: vip='Unknown' f=re.findall('<fanart>(.+?)</fanart>',link) if f: fan=f[0] else: fan=art+'/fanart2.jpg' info=re.findall('<info><message>(.+?)</message><thumbnail>(.+?)</thumbnail></info>',link) if info: for msg,pic in info: main.addLink(msg,'',pic) match=re.compile('<title>([^<]+)</title.+?link>([^<]+)</link.+?thumbnail>([^<]+)</thumbnail>').findall(link) for name,url,thumb in sorted(match): main.addPlayL(name+' [COLOR blue]'+vip+'[/COLOR]',url,183,thumb,'',fan,'','','') main.GA(vip+"-Playlists",mname)
def AllStreams(): link=main.OPENURL('http://www.coolsport.se') link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','').replace('>Twitter</a></li>','').replace('>Contact Us</a></li>','') match=re.compile('<li><a href="([^"]+)">([^<]+)</a></li>').findall(link) for url,name in match: main.addPlayL(name,BASEURL+url,441,'','','','','','',secName='Kiwi',secIcon=art+'/kiwi.png')
def iLiveList(murl): if murl == "general": try: urllist = ["http://www.ilive.to/channels/General", "http://www.ilive.to/channels/General?p=2"] except: urllist = ["http://www.ilive.to/channels/General"] if murl == "entertainment": try: urllist = [ "http://www.ilive.to/channels/Entertainment", "http://www.ilive.to/channels/Entertainment?p=2", "http://www.ilive.to/channels/Entertainment?p=3", "http://www.ilive.to/channels/Entertainment?p=4", "http://www.ilive.to/channels/Entertainment?p=5", "http://www.ilive.to/channels/Entertainment?p=6", ] except: urllist = [ "http://www.ilive.to/channels/Entertainment", "http://www.ilive.to/channels/Entertainment?p=2", "http://www.ilive.to/channels/Entertainment?p=3", "http://www.ilive.to/channels/Entertainment?p=4", "http://www.ilive.to/channels/Entertainment?p=5", ] if murl == "sports": try: urllist = [ "http://www.ilive.to/channels/Sport", "http://www.ilive.to/channels/Sport?p=2", "http://www.ilive.to/channels/Sport?p=3", "http://www.ilive.to/channels/Sport?p=4", ] except: urllist = [ "http://www.ilive.to/channels/Sport", "http://www.ilive.to/channels/Sport?p=2", "http://www.ilive.to/channels/Sport?p=3", ] if murl == "news": try: urllist = ["http://www.ilive.to/channels/News"] except: urllist = ["http://www.ilive.to/channels/News"] if murl == "music": try: urllist = ["http://www.ilive.to/channels/Music"] except: urllist = ["http://www.ilive.to/channels/Music"] if murl == "animation": try: urllist = ["http://www.ilive.to/channels/Animation"] except: urllist = ["http://www.ilive.to/channels/Animation"] dialogWait = xbmcgui.DialogProgress() ret = dialogWait.create("Please wait until channel list is loaded.") totalLinks = len(urllist) loadedLinks = 0 remaining_display = "Pages loaded :: [B]" + str(loadedLinks) + " / " + str(totalLinks) + "[/B]." dialogWait.update(0, "[B]Loading.....[/B]", remaining_display) for durl in urllist: link = main.OPENURL(durl) link = link.replace("\r", "").replace("\n", "").replace("\t", "").replace(" ", "") match = re.compile( 'src=".+?" alt=".+?<img width=".+?" height=".+?" src="([^<]+)" alt=".+?"/></noscript></a><a href="(.+?)"><strong>(.+?)</strong></a><br/>' ).findall(link) for thumb, url, name in match: match = re.compile("Hongkong").findall(name) match2 = re.compile("sex").findall(name) if len(match) == 0 and len(match2) == 0: if name != "Playboy TV": main.addPlayL(name, url, 121, thumb, "", "", "", "", "") loadedLinks = loadedLinks + 1 percent = (loadedLinks * 100) / totalLinks remaining_display = "Pages loaded :: [B]" + str(loadedLinks) + " / " + str(totalLinks) + "[/B]." dialogWait.update(percent, "[B]Loading.....[/B]", remaining_display) if dialogWait.iscanceled(): return False dialogWait.close() del dialogWait main.GA("iLive", "List")
def USALIST(murl): main.GA("Live","USA Live") main.addPlayL('AETV','aetv',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/aetv.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('ABC','abc',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/abc.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('HBO','hbo',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/hbo.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('NBA TV','nbatv',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/nbatv.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('NBC','nbc',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/nbc.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('Nickelodeon','nick',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/nick.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('SPIKE','spike',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/spike.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('SYFY','syfy',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/syfy.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('TBS','tbs',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/tbs.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('TNT','tnt',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/tnt.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('USA','usa',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/usa.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('ABC FAMILY','abcfam',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/abcfam.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('AMC','amc',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/amc.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('Bravo','bravo',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/bravo.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('Cartoon Network','cn',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/cn.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('CBS','cbs',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/cbs.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('CW','cw',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/cw.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('ESPN','espn',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/espn.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('FOX','fox',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/fox.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('FX','fx',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/fx.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('Special Event 1','event1',458,art+'/usalive.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('Special Event 2','event2',458,art+'/usalive.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png')
def USALIST(murl): main.GA("Live", "USA Live") main.addPlayL( "AETV", "aetv", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/aetv.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "ABC", "abc", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/abc.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "HBO", "hbo", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/hbo.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "NBA TV", "nbatv", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/nbatv.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "NBC", "nbc", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/nbc.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "Nickelodeon", "nick", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/nick.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "SPIKE", "spike", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/spike.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "SYFY", "syfy", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/syfy.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "TBS", "tbs", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/tbs.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "TNT", "tnt", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/tnt.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "USA", "usa", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/usa.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "ABC FAMILY", "abcfam", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/abcfam.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "AMC", "amc", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/amc.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "Bravo", "bravo", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/bravo.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "Cartoon Network", "cn", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/cn.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "CBS", "cbs", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/cbs.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "CW", "cw", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/cw.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "ESPN", "espn", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/espn.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "FOX", "fox", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/fox.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "FX", "fx", 458, "https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/fx.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "Special Event 1", "event1", 458, art + "/usalive.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", ) main.addPlayL( "Special Event 2", "event2", 458, art + "/usalive.png", "", "", "", "", "", secName="USA Live", secIcon=art + "/usalive.png", )
def iLiveList(murl): if murl=='general': try: urllist=['http://www.ilive.to/channels/General','http://www.ilive.to/channels/General?p=2'] except: urllist=['http://www.ilive.to/channels/General'] if murl=='entertainment': try: urllist=['http://www.ilive.to/channels/Entertainment','http://www.ilive.to/channels/Entertainment?p=2','http://www.ilive.to/channels/Entertainment?p=3','http://www.ilive.to/channels/Entertainment?p=4','http://www.ilive.to/channels/Entertainment?p=5','http://www.ilive.to/channels/Entertainment?p=6'] except: urllist=['http://www.ilive.to/channels/Entertainment','http://www.ilive.to/channels/Entertainment?p=2','http://www.ilive.to/channels/Entertainment?p=3','http://www.ilive.to/channels/Entertainment?p=4','http://www.ilive.to/channels/Entertainment?p=5'] if murl=='sports': try: urllist=['http://www.ilive.to/channels/Sport','http://www.ilive.to/channels/Sport?p=2','http://www.ilive.to/channels/Sport?p=3','http://www.ilive.to/channels/Sport?p=4'] except: urllist=['http://www.ilive.to/channels/Sport','http://www.ilive.to/channels/Sport?p=2','http://www.ilive.to/channels/Sport?p=3'] if murl=='news': try: urllist=['http://www.ilive.to/channels/News'] except: urllist=['http://www.ilive.to/channels/News'] if murl=='music': try: urllist=['http://www.ilive.to/channels/Music'] except: urllist=['http://www.ilive.to/channels/Music'] if murl=='animation': try: urllist=['http://www.ilive.to/channels/Animation','http://www.ilive.to/channels/Animation?p=2'] except: urllist=['http://www.ilive.to/channels/Animation'] if murl=='family': try: urllist=['http://www.ilive.to/channels/Family'] except: urllist=['http://www.ilive.to/channels/Family'] if murl=='lifecaster': try: urllist=['http://www.ilive.to/channels/Lifecaster'] except: urllist=['http://www.ilive.to/channels/Lifecaster'] if murl=='gaming': try: urllist=['http://www.ilive.to/channels/Gaming'] except: urllist=['http://www.ilive.to/channels/Gaming'] if murl=='mobile': try: urllist=['http://www.ilive.to/channels/Mobile'] except: urllist=['http://www.ilive.to/channels/Mobile'] if murl=='religion': try: urllist=['http://www.ilive.to/channels/Religion'] except: urllist=['http://www.ilive.to/channels/Religion'] if murl=='radio': try: urllist=['http://www.ilive.to/channels/Radio'] except: urllist=['http://www.ilive.to/channels/Radio'] if murl=='all': try: urllist=['http://www.ilive.to/channels','http://www.ilive.to/channels?p=2','http://www.ilive.to/channels?p=3','http://www.ilive.to/channels?p=4','http://www.ilive.to/channels?p=5','http://www.ilive.to/channels?p=6','http://www.ilive.to/channels?p=7','http://www.ilive.to/channels?p=8','http://www.ilive.to/channels?p=9','http://www.ilive.to/channels?p=10','http://www.ilive.to/channels?p=11','http://www.ilive.to/channels?p=12','http://www.ilive.to/channels?p=13','http://www.ilive.to/channels?p=14','http://www.ilive.to/channels?p=15','http://www.ilive.to/channels?p=16'] except: urllist=['http://www.ilive.to/channels','http://www.ilive.to/channels?p=2','http://www.ilive.to/channels?p=3','http://www.ilive.to/channels?p=4','http://www.ilive.to/channels?p=5','http://www.ilive.to/channels?p=6','http://www.ilive.to/channels?p=7','http://www.ilive.to/channels?p=8','http://www.ilive.to/channels?p=9','http://www.ilive.to/channels?p=10'] if murl=='allenglish': try: urllist=['http://www.ilive.to/channels?lang=1','http://www.ilive.to/channels?lang=1&p=2','http://www.ilive.to/channels?lang=1&p=3','http://www.ilive.to/channels?lang=1&p=4','http://www.ilive.to/channels?lang=1&p=5','http://www.ilive.to/channels?lang=1&p=6','http://www.ilive.to/channels?lang=1&p=7','http://www.ilive.to/channels?lang=1&p=8','http://www.ilive.to/channels?lang=1&p=9','http://www.ilive.to/channels?lang=1&p=10'] except: urllist=['http://www.ilive.to/channels?lang=1','http://www.ilive.to/channels?lang=1&p=2','http://www.ilive.to/channels?lang=1&p=3','http://www.ilive.to/channels?lang=1&p=4','http://www.ilive.to/channels?lang=1&p=5','http://www.ilive.to/channels?lang=1&p=6','http://www.ilive.to/channels?lang=1&p=7','http://www.ilive.to/channels?lang=1&p=8','http://www.ilive.to/channels?lang=1&p=9'] if murl=='entertainmentenglish': try: urllist=['http://www.ilive.to/channels/Entertainment?lang=1','http://www.ilive.to/channels/Entertainment?lang=1&p=2','http://www.ilive.to/channels/Entertainment?lang=1&p=3','http://www.ilive.to/channels/Entertainment?lang=1&p=4','http://www.ilive.to/channels/Entertainment?lang=1&p=5','http://www.ilive.to/channels/Entertainment?lang=1&p=6'] except: urllist=['http://www.ilive.to/channels/Entertainment?lang=1','http://www.ilive.to/channels/Entertainment?lang=1&p=2','http://www.ilive.to/channels/Entertainment?lang=1&p=3','http://www.ilive.to/channels/Entertainment?lang=1&p=4','http://www.ilive.to/channels/Entertainment?lang=1&p=5'] if murl=='sportsenglish': try: urllist=['http://www.ilive.to/channels/Sport?lang=1','http://www.ilive.to/channels/Sport?lang=1&p=2'] except: urllist=['http://www.ilive.to/channels/Sport?lang=1'] dialogWait = xbmcgui.DialogProgress() ret = dialogWait.create('Please wait until channel list is loaded.') totalLinks = len(urllist) loadedLinks = 0 remaining_display = 'Pages loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].' dialogWait.update(0,'[B]Loading.....[/B]',remaining_display) for durl in urllist: link=main.OPENURL(durl) link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','') match=re.compile('src=".+?" alt=".+?<img width=".+?" height=".+?" src="([^<]+)" alt=".+?"/></noscript></a><a href="(.+?)"><strong>(.+?)</strong></a><br/>.+?<a href="http://[A-Za-z0-9\.]*/channels\?lang=\d*">([A-Za-z]*)</a>').findall(link) #match=re.compile('src=".+?" alt=".+?<img width=".+?" height=".+?" src="([^<]+)" alt=".+?"/></noscript></a><a href="(.+?)"><strong>(.+?)</strong></a><br/>').findall(link) for thumb,url,name,lang in match: #for thumb,url,name in match: match=re.compile('Hongkong').findall(name) match2=re.compile('sex').findall(name) if len(match)==0 and len(match2)==0: if name != 'Playboy TV': main.addPlayL(name+' ['+lang+']',url,121,thumb,'','','','','') #main.addPlayL(name,url,121,thumb,'','','','','') loadedLinks = loadedLinks + 1 percent = (loadedLinks * 100)/totalLinks remaining_display = 'Pages loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].' dialogWait.update(percent,'[B]Loading.....[/B]',remaining_display) if (dialogWait.iscanceled()): return False dialogWait.close() del dialogWait main.GA("iLive","List")
def USALIST(murl): #main.GA("Live","USA Live") main.addPlayL('AETV','aetv',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/aetv.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('ABC','abc',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/abc.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('HBO','hbo',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/hbo.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('NBA TV','nbatv',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/nbatv.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('NBC','nbc',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/nbc.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('Nickelodeon','nick',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/nick.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('SPIKE','spike',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/spike.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('SYFY','syfy',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/syfy.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('TBS','tbs',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/tbs.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('TNT','tnt',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/tnt.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('USA','usa',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/usa.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('ABC FAMILY','abcfam',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/abcfam.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('AMC','amc',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/amc.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('Bravo','bravo',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/bravo.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('Cartoon Network','cn',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/cn.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('CBS','cbs',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/cbs.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('CW','cw',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/cw.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('ESPN','espn',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/espn.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('FOX','fox',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/fox.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('FX','fx',458,'https://raw.githubusercontent.com/mash2k3/MashupArtwork/master/misc/fx.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('Special Event 1','event1',458,art+'/usalive.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png') main.addPlayL('Special Event 2','event2',458,art+'/usalive.png','','','','','',secName='USA Live',secIcon=art+'/usalive.png')
def MAIN(): main.GA("Live","ArabicStreams") html = _html('http://www.teledunet.com/') items = _parse_channels_from_html_dom(html) for channels in sorted(items): main.addPlayL(channels['title'],channels['path'],232,channels['thumbnail'],'','','','','')
def iLiveList(murl): if murl=='general': try: urllist=['http://www.ilive.to/channels/General','http://www.ilive.to/channels/General?p=2'] except: urllist=['http://www.ilive.to/channels/General'] if murl=='entertainment': try: urllist=['http://www.ilive.to/channels/Entertainment','http://www.ilive.to/channels/Entertainment?p=2','http://www.ilive.to/channels/Entertainment?p=3','http://www.ilive.to/channels/Entertainment?p=4','http://www.ilive.to/channels/Entertainment?p=5','http://www.ilive.to/channels/Entertainment?p=6'] except: urllist=['http://www.ilive.to/channels/Entertainment','http://www.ilive.to/channels/Entertainment?p=2','http://www.ilive.to/channels/Entertainment?p=3','http://www.ilive.to/channels/Entertainment?p=4','http://www.ilive.to/channels/Entertainment?p=5'] if murl=='sports': try: urllist=['http://www.ilive.to/channels/Sport','http://www.ilive.to/channels/Sport?p=2','http://www.ilive.to/channels/Sport?p=3','http://www.ilive.to/channels/Sport?p=4'] except: urllist=['http://www.ilive.to/channels/Sport','http://www.ilive.to/channels/Sport?p=2','http://www.ilive.to/channels/Sport?p=3'] if murl=='news': try: urllist=['http://www.ilive.to/channels/News'] except: urllist=['http://www.ilive.to/channels/News'] if murl=='music': try: urllist=['http://www.ilive.to/channels/Music'] except: urllist=['http://www.ilive.to/channels/Music'] if murl=='animation': try: urllist=['http://www.ilive.to/channels/Animation'] except: urllist=['http://www.ilive.to/channels/Animation'] if murl=='all': try: urllist=['http://www.ilive.to/channels','http://www.ilive.to/channels?p=2','http://www.ilive.to/channels?p=3','http://www.ilive.to/channels?p=4','http://www.ilive.to/channels?p=5','http://www.ilive.to/channels?p=6','http://www.ilive.to/channels?p=7','http://www.ilive.to/channels?p=8','http://www.ilive.to/channels?p=9','http://www.ilive.to/channels?p=10','http://www.ilive.to/channels?p=11','http://www.ilive.to/channels?p=12','http://www.ilive.to/channels?p=13','http://www.ilive.to/channels?p=14','http://www.ilive.to/channels?p=15','http://www.ilive.to/channels?p=16'] except: urllist=['http://www.ilive.to/channels','http://www.ilive.to/channels?p=2','http://www.ilive.to/channels?p=3','http://www.ilive.to/channels?p=4','http://www.ilive.to/channels?p=5','http://www.ilive.to/channels?p=6','http://www.ilive.to/channels?p=7','http://www.ilive.to/channels?p=8','http://www.ilive.to/channels?p=9','http://www.ilive.to/channels?p=10'] if murl=='allenglish': try: urllist=['http://www.ilive.to/channels?lang=1','http://www.ilive.to/channels?lang=1&p=2','http://www.ilive.to/channels?lang=1&p=3','http://www.ilive.to/channels?lang=1&p=4','http://www.ilive.to/channels?lang=1&p=5','http://www.ilive.to/channels?lang=1&p=6','http://www.ilive.to/channels?lang=1&p=7','http://www.ilive.to/channels?lang=1&p=8','http://www.ilive.to/channels?lang=1&p=9','http://www.ilive.to/channels?lang=1&p=10'] except: urllist=['http://www.ilive.to/channels?lang=1','http://www.ilive.to/channels?lang=1&p=2','http://www.ilive.to/channels?lang=1&p=3','http://www.ilive.to/channels?lang=1&p=4','http://www.ilive.to/channels?lang=1&p=5','http://www.ilive.to/channels?lang=1&p=6','http://www.ilive.to/channels?lang=1&p=7','http://www.ilive.to/channels?lang=1&p=8','http://www.ilive.to/channels?lang=1&p=9'] if murl=='entertainmentenglish': try: urllist=['http://www.ilive.to/channels/Entertainment?lang=1','http://www.ilive.to/channels/Entertainment?lang=1&p=2','http://www.ilive.to/channels/Entertainment?lang=1&p=3','http://www.ilive.to/channels/Entertainment?lang=1&p=4','http://www.ilive.to/channels/Entertainment?lang=1&p=5','http://www.ilive.to/channels/Entertainment?lang=1&p=6'] except: urllist=['http://www.ilive.to/channels/Entertainment?lang=1','http://www.ilive.to/channels/Entertainment?lang=1&p=2','http://www.ilive.to/channels/Entertainment?lang=1&p=3','http://www.ilive.to/channels/Entertainment?lang=1&p=4','http://www.ilive.to/channels/Entertainment?lang=1&p=5'] if murl=='sportsenglish': try: urllist=['http://www.ilive.to/channels/Sport?lang=1','http://www.ilive.to/channels/Sport?lang=1&p=2'] except: urllist=['http://www.ilive.to/channels/Sport?lang=1'] dialogWait = xbmcgui.DialogProgress() ret = dialogWait.create('Please wait until channel list is loaded.') totalLinks = len(urllist) loadedLinks = 0 remaining_display = 'Pages loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].' dialogWait.update(0,'[B]Loading.....[/B]',remaining_display) for durl in urllist: link=main.OPENURL(durl) link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','').replace(' ','') match=re.compile('src=".+?" alt=".+?<img width=".+?" height=".+?" src="([^<]+)" alt=".+?</noscript></a><a href="(.+?)"><strong>(.*?)</strong></a><br/>').findall(link) for thumb,url,name in match: if 'venus' not in name.lower() and '+16' not in name.lower() and '+18' not in name.lower() and 'hongkong' not in name.lower() and 'playboy' not in name.lower() and 'sex' not in name.lower() and 'girls' not in name.lower() and 'f**k' not in name.lower() and 'hardcore' not in name.lower() and 'softcore' not in name.lower() and 'pussy' not in name.lower() and 'dick' not in name.lower() and 'anal' not in name.lower() and 'cum' not in name.lower() and 'b*****b' not in name.lower() and 'adult' not in name.lower() and '18+' not in name.lower() and '16+' not in name.lower(): main.addPlayL(name,url,121,thumb,'','','','','',secName='iLive',secIcon=art+'/ilive.png') loadedLinks = loadedLinks + 1 percent = (loadedLinks * 100)/totalLinks remaining_display = 'Pages loaded :: [B]'+str(loadedLinks)+' / '+str(totalLinks)+'[/B].' dialogWait.update(percent,'[B]Loading.....[/B]',remaining_display) if (dialogWait.iscanceled()): return False dialogWait.close() del dialogWait main.GA("iLive","List")
def LIST(url): link=main.OPENURL(url) link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','') match=re.compile('<li><a target=".+?" href="([^"]+)">([^<]+)</a></li>').findall(link) for url,name in match: main.addPlayL(name,url,445,'','','','','','',secName='SportsPack',secIcon=art+'/spo.png')
def getFavorites(section_title = None): from resources.universal import favorites fav = favorites.Favorites(addon_id, sys.argv) if(section_title): fav_items = fav.get_my_favorites(section_title=section_title, item_mode='addon') else: fav_items = fav.get_my_favorites(item_mode='addon') if len(fav_items) > 0: for fav_item in fav_items: if (fav_item['isfolder'] == 'false'): if (fav_item['section_addon_title'] == "iWatchOnline Fav's" or fav_item['section_addon_title'] == "Movie Fav's"): main.addPlayM(fav_item['title'],fav_item['infolabels'].get('item_url',''), fav_item['infolabels'].get('item_mode',''), fav_item['image_url'], fav_item['infolabels'].get('plot',''), fav_item['fanart_url'], fav_item['infolabels'].get('duration',''), fav_item['infolabels'].get('genre',''), fav_item['infolabels'].get('year','')) elif (fav_item['section_addon_title'] == "TV Show Fav's"): main.addPlayT(fav_item['title'],fav_item['infolabels'].get('item_url',''), fav_item['infolabels'].get('item_mode',''), fav_item['image_url'], fav_item['infolabels'].get('plot',''), fav_item['fanart_url'], fav_item['infolabels'].get('duration',''), fav_item['infolabels'].get('genre',''), fav_item['infolabels'].get('year','')) elif (fav_item['section_addon_title'] == "TV Episode Fav's"): main.addPlayTE(fav_item['title'],fav_item['infolabels'].get('item_url',''), fav_item['infolabels'].get('item_mode',''), fav_item['image_url'], fav_item['infolabels'].get('plot',''), fav_item['fanart_url'], fav_item['infolabels'].get('duration',''), fav_item['infolabels'].get('genre',''), fav_item['infolabels'].get('year','')) elif (fav_item['section_addon_title'] == "Misc. Fav's"): main.addPlayMs(fav_item['title'],fav_item['infolabels'].get('item_url',''), fav_item['infolabels'].get('item_mode',''), fav_item['image_url'], fav_item['infolabels'].get('plot',''), fav_item['fanart_url'], fav_item['infolabels'].get('duration',''), fav_item['infolabels'].get('genre',''), fav_item['infolabels'].get('year','')) elif (fav_item['section_addon_title'] == "Live Fav's"): main.addPlayL(fav_item['title'],fav_item['infolabels'].get('item_url',''), fav_item['infolabels'].get('item_mode',''), fav_item['image_url'], fav_item['infolabels'].get('plot',''), fav_item['fanart_url'], fav_item['infolabels'].get('duration',''), fav_item['infolabels'].get('genre',''), fav_item['infolabels'].get('year','')) elif (fav_item['section_addon_title'] == "Movie25 Fav's"): main.addInfo(fav_item['title'],fav_item['infolabels'].get('item_url',''), fav_item['infolabels'].get('item_mode',''), fav_item['image_url'], fav_item['infolabels'].get('genre',''), fav_item['infolabels'].get('year','')) else: if (fav_item['section_addon_title'] == "iWatchOnline Fav's" or fav_item['section_addon_title'] == "Movie Fav's"): main.addDirM(fav_item['title'],fav_item['infolabels'].get('item_url',''), fav_item['infolabels'].get('item_mode',''), fav_item['image_url'], fav_item['infolabels'].get('plot',''), fav_item['fanart_url'], fav_item['infolabels'].get('duration',''), fav_item['infolabels'].get('genre',''), fav_item['infolabels'].get('year','')) elif (fav_item['section_addon_title'] == "TV Show Fav's"): main.addDirT(fav_item['title'],fav_item['infolabels'].get('item_url',''), fav_item['infolabels'].get('item_mode',''), fav_item['image_url'], fav_item['infolabels'].get('plot',''), fav_item['fanart_url'], fav_item['infolabels'].get('duration',''), fav_item['infolabels'].get('genre',''), fav_item['infolabels'].get('year','')) elif (fav_item['section_addon_title'] == "TV Episode Fav's"): main.addDirTE(fav_item['title'],fav_item['infolabels'].get('item_url',''), fav_item['infolabels'].get('item_mode',''), fav_item['image_url'], fav_item['infolabels'].get('plot',''), fav_item['fanart_url'], fav_item['infolabels'].get('duration',''), fav_item['infolabels'].get('genre',''), fav_item['infolabels'].get('year','')) elif (fav_item['section_addon_title'] == "Misc. Fav's"): main.addDirMs(fav_item['title'],fav_item['infolabels'].get('item_url',''), fav_item['infolabels'].get('item_mode',''), fav_item['image_url'], fav_item['infolabels'].get('plot',''), fav_item['fanart_url'], fav_item['infolabels'].get('duration',''), fav_item['infolabels'].get('genre',''), fav_item['infolabels'].get('year','')) elif (fav_item['section_addon_title'] == "Live Fav's"): main.addDirL(fav_item['title'],fav_item['infolabels'].get('item_url',''), fav_item['infolabels'].get('item_mode',''), fav_item['image_url'], fav_item['infolabels'].get('plot',''), fav_item['fanart_url'], fav_item['infolabels'].get('duration',''), fav_item['infolabels'].get('genre',''), fav_item['infolabels'].get('year','')) elif (fav_item['section_addon_title'] == "Movie25 Fav's"): main.addInfo(fav_item['title'],fav_item['infolabels'].get('item_url',''), fav_item['infolabels'].get('item_mode',''), fav_item['image_url'], fav_item['infolabels'].get('genre',''), fav_item['infolabels'].get('year','')) else: xbmc.executebuiltin("XBMC.Notification([B][COLOR=FF67cc33]Aftershock Up[/COLOR][/B],[B]You Have No Saved Favourites[/B],5000,"")") return
def MAIN(): main.GA("Live","ArabicStreams") items = _parse_channels_from_html_dom('http://www.teledunet.com/') for channels in sorted(items): main.addPlayL(channels['title'],channels['path'],232,channels['thumbnail'],'','','','','',secName='Arabic Streams',secIcon=art+'/arabicstream.png')
def AllStreams(): link=main.OPENURL('http://www.coolsport.tv/schedule-coolsport-tv.html') link=link.replace('\r','').replace('\n','').replace('\t','').replace(' ','').replace('>Twitter</a></li>','').replace('>Contact Us</a></li>','') match=re.compile('<li><a href="([^"]+)">([^<]+)</a></li>').findall(link) for url,name in match: main.addPlayL(name,url,441,'','','','','','',secName='Kiwi',secIcon=art+'/kiwi.png')
def iLiveList(murl): if murl == "general": try: urllist = ["http://www.ilive.to/channels/General", "http://www.ilive.to/channels/General?p=2"] except: urllist = ["http://www.ilive.to/channels/General"] if murl == "entertainment": try: urllist = [ "http://www.ilive.to/channels/Entertainment", "http://www.ilive.to/channels/Entertainment?p=2", "http://www.ilive.to/channels/Entertainment?p=3", "http://www.ilive.to/channels/Entertainment?p=4", "http://www.ilive.to/channels/Entertainment?p=5", "http://www.ilive.to/channels/Entertainment?p=6", ] except: urllist = [ "http://www.ilive.to/channels/Entertainment", "http://www.ilive.to/channels/Entertainment?p=2", "http://www.ilive.to/channels/Entertainment?p=3", "http://www.ilive.to/channels/Entertainment?p=4", "http://www.ilive.to/channels/Entertainment?p=5", ] if murl == "sports": try: urllist = [ "http://www.ilive.to/channels/Sport", "http://www.ilive.to/channels/Sport?p=2", "http://www.ilive.to/channels/Sport?p=3", "http://www.ilive.to/channels/Sport?p=4", ] except: urllist = [ "http://www.ilive.to/channels/Sport", "http://www.ilive.to/channels/Sport?p=2", "http://www.ilive.to/channels/Sport?p=3", ] if murl == "news": try: urllist = ["http://www.ilive.to/channels/News"] except: urllist = ["http://www.ilive.to/channels/News"] if murl == "music": try: urllist = ["http://www.ilive.to/channels/Music"] except: urllist = ["http://www.ilive.to/channels/Music"] if murl == "animation": try: urllist = ["http://www.ilive.to/channels/Animation"] except: urllist = ["http://www.ilive.to/channels/Animation"] if murl == "all": try: urllist = [ "http://www.ilive.to/channels", "http://www.ilive.to/channels?p=2", "http://www.ilive.to/channels?p=3", "http://www.ilive.to/channels?p=4", "http://www.ilive.to/channels?p=5", "http://www.ilive.to/channels?p=6", "http://www.ilive.to/channels?p=7", "http://www.ilive.to/channels?p=8", "http://www.ilive.to/channels?p=9", "http://www.ilive.to/channels?p=10", "http://www.ilive.to/channels?p=11", "http://www.ilive.to/channels?p=12", "http://www.ilive.to/channels?p=13", "http://www.ilive.to/channels?p=14", "http://www.ilive.to/channels?p=15", "http://www.ilive.to/channels?p=16", ] except: urllist = [ "http://www.ilive.to/channels", "http://www.ilive.to/channels?p=2", "http://www.ilive.to/channels?p=3", "http://www.ilive.to/channels?p=4", "http://www.ilive.to/channels?p=5", "http://www.ilive.to/channels?p=6", "http://www.ilive.to/channels?p=7", "http://www.ilive.to/channels?p=8", "http://www.ilive.to/channels?p=9", "http://www.ilive.to/channels?p=10", ] if murl == "allenglish": try: urllist = [ "http://www.ilive.to/channels?lang=1", "http://www.ilive.to/channels?lang=1&p=2", "http://www.ilive.to/channels?lang=1&p=3", "http://www.ilive.to/channels?lang=1&p=4", "http://www.ilive.to/channels?lang=1&p=5", "http://www.ilive.to/channels?lang=1&p=6", "http://www.ilive.to/channels?lang=1&p=7", "http://www.ilive.to/channels?lang=1&p=8", "http://www.ilive.to/channels?lang=1&p=9", "http://www.ilive.to/channels?lang=1&p=10", ] except: urllist = [ "http://www.ilive.to/channels?lang=1", "http://www.ilive.to/channels?lang=1&p=2", "http://www.ilive.to/channels?lang=1&p=3", "http://www.ilive.to/channels?lang=1&p=4", "http://www.ilive.to/channels?lang=1&p=5", "http://www.ilive.to/channels?lang=1&p=6", "http://www.ilive.to/channels?lang=1&p=7", "http://www.ilive.to/channels?lang=1&p=8", "http://www.ilive.to/channels?lang=1&p=9", ] if murl == "entertainmentenglish": try: urllist = [ "http://www.ilive.to/channels/Entertainment?lang=1", "http://www.ilive.to/channels/Entertainment?lang=1&p=2", "http://www.ilive.to/channels/Entertainment?lang=1&p=3", "http://www.ilive.to/channels/Entertainment?lang=1&p=4", "http://www.ilive.to/channels/Entertainment?lang=1&p=5", "http://www.ilive.to/channels/Entertainment?lang=1&p=6", ] except: urllist = [ "http://www.ilive.to/channels/Entertainment?lang=1", "http://www.ilive.to/channels/Entertainment?lang=1&p=2", "http://www.ilive.to/channels/Entertainment?lang=1&p=3", "http://www.ilive.to/channels/Entertainment?lang=1&p=4", "http://www.ilive.to/channels/Entertainment?lang=1&p=5", ] if murl == "sportsenglish": try: urllist = ["http://www.ilive.to/channels/Sport?lang=1", "http://www.ilive.to/channels/Sport?lang=1&p=2"] except: urllist = ["http://www.ilive.to/channels/Sport?lang=1"] dialogWait = xbmcgui.DialogProgress() ret = dialogWait.create("Please wait until channel list is loaded.") totalLinks = len(urllist) loadedLinks = 0 remaining_display = "Pages loaded :: [B]" + str(loadedLinks) + " / " + str(totalLinks) + "[/B]." dialogWait.update(0, "[B]Loading.....[/B]", remaining_display) for durl in urllist: link = main.OPENURL(durl) link = link.replace("\r", "").replace("\n", "").replace("\t", "").replace(" ", "").replace(" ", "") match = re.compile( 'src=".+?" alt=".+?<img width=".+?" height=".+?" src="([^<]+)" alt=".+?</noscript></a><a href="(.+?)"><strong>(.*?)</strong></a><br/>' ).findall(link) for thumb, url, name in match: if ( "venus" not in name.lower() and "+16" not in name.lower() and "+18" not in name.lower() and "hongkong" not in name.lower() and "playboy" not in name.lower() and "sex" not in name.lower() and "girls" not in name.lower() and "f**k" not in name.lower() and "hardcore" not in name.lower() and "softcore" not in name.lower() and "pussy" not in name.lower() and "dick" not in name.lower() and "anal" not in name.lower() and "cum" not in name.lower() and "b*****b" not in name.lower() and "adult" not in name.lower() and "18+" not in name.lower() and "16+" not in name.lower() ): main.addPlayL(name, url, 121, thumb, "", "", "", "", "", secName="iLive", secIcon=art + "/ilive.png") loadedLinks = loadedLinks + 1 percent = (loadedLinks * 100) / totalLinks remaining_display = "Pages loaded :: [B]" + str(loadedLinks) + " / " + str(totalLinks) + "[/B]." dialogWait.update(percent, "[B]Loading.....[/B]", remaining_display) if dialogWait.iscanceled(): return False dialogWait.close() del dialogWait
def iLiveList(murl): if murl == 'general': try: urllist = [ 'http://www.ilive.to/channels/General', 'http://www.ilive.to/channels/General?p=2' ] except: urllist = ['http://www.ilive.to/channels/General'] if murl == 'entertainment': try: urllist = [ 'http://www.ilive.to/channels/Entertainment', 'http://www.ilive.to/channels/Entertainment?p=2', 'http://www.ilive.to/channels/Entertainment?p=3', 'http://www.ilive.to/channels/Entertainment?p=4', 'http://www.ilive.to/channels/Entertainment?p=5', 'http://www.ilive.to/channels/Entertainment?p=6' ] except: urllist = [ 'http://www.ilive.to/channels/Entertainment', 'http://www.ilive.to/channels/Entertainment?p=2', 'http://www.ilive.to/channels/Entertainment?p=3', 'http://www.ilive.to/channels/Entertainment?p=4', 'http://www.ilive.to/channels/Entertainment?p=5' ] if murl == 'sports': try: urllist = [ 'http://www.ilive.to/channels/Sport', 'http://www.ilive.to/channels/Sport?p=2', 'http://www.ilive.to/channels/Sport?p=3', 'http://www.ilive.to/channels/Sport?p=4' ] except: urllist = [ 'http://www.ilive.to/channels/Sport', 'http://www.ilive.to/channels/Sport?p=2', 'http://www.ilive.to/channels/Sport?p=3' ] if murl == 'news': try: urllist = ['http://www.ilive.to/channels/News'] except: urllist = ['http://www.ilive.to/channels/News'] if murl == 'music': try: urllist = ['http://www.ilive.to/channels/Music'] except: urllist = ['http://www.ilive.to/channels/Music'] if murl == 'animation': try: urllist = ['http://www.ilive.to/channels/Animation'] except: urllist = ['http://www.ilive.to/channels/Animation'] if murl == 'all': try: urllist = [ 'http://www.ilive.to/channels', 'http://www.ilive.to/channels?p=2', 'http://www.ilive.to/channels?p=3', 'http://www.ilive.to/channels?p=4', 'http://www.ilive.to/channels?p=5', 'http://www.ilive.to/channels?p=6', 'http://www.ilive.to/channels?p=7', 'http://www.ilive.to/channels?p=8', 'http://www.ilive.to/channels?p=9', 'http://www.ilive.to/channels?p=10', 'http://www.ilive.to/channels?p=11', 'http://www.ilive.to/channels?p=12', 'http://www.ilive.to/channels?p=13', 'http://www.ilive.to/channels?p=14', 'http://www.ilive.to/channels?p=15', 'http://www.ilive.to/channels?p=16' ] except: urllist = [ 'http://www.ilive.to/channels', 'http://www.ilive.to/channels?p=2', 'http://www.ilive.to/channels?p=3', 'http://www.ilive.to/channels?p=4', 'http://www.ilive.to/channels?p=5', 'http://www.ilive.to/channels?p=6', 'http://www.ilive.to/channels?p=7', 'http://www.ilive.to/channels?p=8', 'http://www.ilive.to/channels?p=9', 'http://www.ilive.to/channels?p=10' ] if murl == 'allenglish': try: urllist = [ 'http://www.ilive.to/channels?lang=1', 'http://www.ilive.to/channels?lang=1&p=2', 'http://www.ilive.to/channels?lang=1&p=3', 'http://www.ilive.to/channels?lang=1&p=4', 'http://www.ilive.to/channels?lang=1&p=5', 'http://www.ilive.to/channels?lang=1&p=6', 'http://www.ilive.to/channels?lang=1&p=7', 'http://www.ilive.to/channels?lang=1&p=8', 'http://www.ilive.to/channels?lang=1&p=9', 'http://www.ilive.to/channels?lang=1&p=10' ] except: urllist = [ 'http://www.ilive.to/channels?lang=1', 'http://www.ilive.to/channels?lang=1&p=2', 'http://www.ilive.to/channels?lang=1&p=3', 'http://www.ilive.to/channels?lang=1&p=4', 'http://www.ilive.to/channels?lang=1&p=5', 'http://www.ilive.to/channels?lang=1&p=6', 'http://www.ilive.to/channels?lang=1&p=7', 'http://www.ilive.to/channels?lang=1&p=8', 'http://www.ilive.to/channels?lang=1&p=9' ] if murl == 'entertainmentenglish': try: urllist = [ 'http://www.ilive.to/channels/Entertainment?lang=1', 'http://www.ilive.to/channels/Entertainment?lang=1&p=2', 'http://www.ilive.to/channels/Entertainment?lang=1&p=3', 'http://www.ilive.to/channels/Entertainment?lang=1&p=4', 'http://www.ilive.to/channels/Entertainment?lang=1&p=5', 'http://www.ilive.to/channels/Entertainment?lang=1&p=6' ] except: urllist = [ 'http://www.ilive.to/channels/Entertainment?lang=1', 'http://www.ilive.to/channels/Entertainment?lang=1&p=2', 'http://www.ilive.to/channels/Entertainment?lang=1&p=3', 'http://www.ilive.to/channels/Entertainment?lang=1&p=4', 'http://www.ilive.to/channels/Entertainment?lang=1&p=5' ] if murl == 'sportsenglish': try: urllist = [ 'http://www.ilive.to/channels/Sport?lang=1', 'http://www.ilive.to/channels/Sport?lang=1&p=2' ] except: urllist = ['http://www.ilive.to/channels/Sport?lang=1'] dialogWait = xbmcgui.DialogProgress() ret = dialogWait.create('Please wait until channel list is loaded.') totalLinks = len(urllist) loadedLinks = 0 remaining_display = 'Pages loaded :: [B]' + str(loadedLinks) + ' / ' + str( totalLinks) + '[/B].' dialogWait.update(0, '[B]Loading.....[/B]', remaining_display) for durl in urllist: link = main.OPENURL(durl) link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace( ' ', '').replace(' ', '') match = re.compile( 'src=".+?" alt=".+?<img width=".+?" height=".+?" src="([^<]+)" alt=".+?</noscript></a><a href="(.+?)"><strong>(.*?)</strong></a><br/>' ).findall(link) for thumb, url, name in match: if 'venus' not in name.lower() and '+16' not in name.lower( ) and '+18' not in name.lower() and 'hongkong' not in name.lower( ) and 'playboy' not in name.lower() and 'sex' not in name.lower( ) and 'girls' not in name.lower( ) and 'f**k' not in name.lower() and 'hardcore' not in name.lower( ) and 'softcore' not in name.lower() and 'pussy' not in name.lower( ) and 'dick' not in name.lower() and 'anal' not in name.lower( ) and 'cum' not in name.lower( ) and 'b*****b' not in name.lower() and 'adult' not in name.lower( ) and '18+' not in name.lower() and '16+' not in name.lower(): main.addPlayL(name, url, 121, thumb, '', '', '', '', '', secName='iLive', secIcon=art + '/ilive.png') loadedLinks = loadedLinks + 1 percent = (loadedLinks * 100) / totalLinks remaining_display = 'Pages loaded :: [B]' + str( loadedLinks) + ' / ' + str(totalLinks) + '[/B].' dialogWait.update(percent, '[B]Loading.....[/B]', remaining_display) if (dialogWait.iscanceled()): return False dialogWait.close() del dialogWait main.GA("iLive", "List")
def iLiveList(murl): if murl == 'general': try: urllist = [ 'http://www.ilive.to/channels/General', 'http://www.ilive.to/channels/General?p=2' ] except: urllist = ['http://www.ilive.to/channels/General'] if murl == 'entertainment': try: urllist = [ 'http://www.ilive.to/channels/Entertainment', 'http://www.ilive.to/channels/Entertainment?p=2', 'http://www.ilive.to/channels/Entertainment?p=3', 'http://www.ilive.to/channels/Entertainment?p=4', 'http://www.ilive.to/channels/Entertainment?p=5', 'http://www.ilive.to/channels/Entertainment?p=6' ] except: urllist = [ 'http://www.ilive.to/channels/Entertainment', 'http://www.ilive.to/channels/Entertainment?p=2', 'http://www.ilive.to/channels/Entertainment?p=3', 'http://www.ilive.to/channels/Entertainment?p=4', 'http://www.ilive.to/channels/Entertainment?p=5' ] if murl == 'sports': try: urllist = [ 'http://www.ilive.to/channels/Sport', 'http://www.ilive.to/channels/Sport?p=2', 'http://www.ilive.to/channels/Sport?p=3', 'http://www.ilive.to/channels/Sport?p=4' ] except: urllist = [ 'http://www.ilive.to/channels/Sport', 'http://www.ilive.to/channels/Sport?p=2', 'http://www.ilive.to/channels/Sport?p=3' ] if murl == 'news': try: urllist = ['http://www.ilive.to/channels/News'] except: urllist = ['http://www.ilive.to/channels/News'] if murl == 'music': try: urllist = ['http://www.ilive.to/channels/Music'] except: urllist = ['http://www.ilive.to/channels/Music'] if murl == 'animation': try: urllist = ['http://www.ilive.to/channels/Animation'] except: urllist = ['http://www.ilive.to/channels/Animation'] dialogWait = xbmcgui.DialogProgress() ret = dialogWait.create('Please wait until channel list is loaded.') totalLinks = len(urllist) loadedLinks = 0 remaining_display = 'Pages loaded :: [B]' + str(loadedLinks) + ' / ' + str( totalLinks) + '[/B].' dialogWait.update(0, '[B]Loading.....[/B]', remaining_display) for durl in urllist: link = main.OPENURL(durl) link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(' ', '') match = re.compile( 'src=".+?" alt=".+?<img width=".+?" height=".+?" src="([^<]+)" alt=".+?"/></noscript></a><a href="(.+?)"><strong>(.+?)</strong></a><br/>' ).findall(link) for thumb, url, name in match: match = re.compile('Hongkong').findall(name) match2 = re.compile('sex').findall(name) if len(match) == 0 and len(match2) == 0: if name != 'Playboy TV': main.addPlayL(name, url, 121, thumb, '', '', '', '', '') loadedLinks = loadedLinks + 1 percent = (loadedLinks * 100) / totalLinks remaining_display = 'Pages loaded :: [B]' + str( loadedLinks) + ' / ' + str(totalLinks) + '[/B].' dialogWait.update(percent, '[B]Loading.....[/B]', remaining_display) if (dialogWait.iscanceled()): return False dialogWait.close() del dialogWait main.GA("iLive", "List")