本文整理汇总了Python中resources.libs.main.addPlayL函数的典型用法代码示例。如果您正苦于以下问题:Python addPlayL函数的具体用法?Python addPlayL怎么用?Python addPlayL使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了addPlayL函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: VIPList
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)
开发者ID:Pirata-Repository,项目名称:Pirata,代码行数:27,代码来源:vipplaylist.py
示例2: MUSICSTREAMS
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')
开发者ID:charlesjackson261,项目名称:yolo-boo,代码行数:7,代码来源:musicstreams.py
示例3: LISTMENU
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,'','','','','','')
开发者ID:charlesjackson261,项目名称:yolo-boo,代码行数:7,代码来源:hqzone.py
示例4: LivestationList
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,'','','','','')
开发者ID:HIGHWAY99,项目名称:MashUp,代码行数:7,代码来源:livestation.py
示例5: LISTCONTENT
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,'','','','','')
开发者ID:Ladeiras,项目名称:AutoUpdate,代码行数:25,代码来源:skyaccess.py
示例6: CastalbaList
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")
开发者ID:Pirata-Repository,项目名称:Pirata,代码行数:30,代码来源:castalba.py
示例7: LISTCONTENT
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,'','','','','','')
开发者ID:charlesjackson261,项目名称:yolo-boo,代码行数:8,代码来源:hqzone.py
示例8: COUNTRIESList
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()
开发者ID:rollysalvana,项目名称:pampereo-xbmc-plugins,代码行数:8,代码来源:countries.py
示例9: MUSICSTREAMS
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, "", "", "", "", "")
开发者ID:himag1,项目名称:MashUp,代码行数:9,代码来源:musicstreams.py
示例10: TubTubMAIN
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,'','','','','')
开发者ID:rollysalvana,项目名称:pampereo-xbmc-plugins,代码行数:9,代码来源:tubtub.py
示例11: LISTFM
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,'','','','','')
开发者ID:HIGHWAY99,项目名称:MashUp,代码行数:10,代码来源:oneeightone.py
示例12: LivestationLink
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)
开发者ID:HIGHWAY99,项目名称:MashUp,代码行数:10,代码来源:livestation.py
示例13: LivestationList
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')
开发者ID:alejusar,项目名称:starthere,代码行数:11,代码来源:livestation.py
示例14: LISTCONTENT
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,'','','','','')
开发者ID:jadavbheda,项目名称:AutoUpdate,代码行数:13,代码来源:skyaccess.py
示例15: MAIN
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')
开发者ID:jadavbheda,项目名称:AutoUpdate,代码行数:16,代码来源:kiwi.py
示例16: COUNTRIESList
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()
开发者ID:himag1,项目名称:AutoUpdate,代码行数:19,代码来源:countries.py
示例17: LIST
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'],'','','','','')
开发者ID:kragen4,项目名称:MashUp,代码行数:19,代码来源:customchannel.py
示例18: CastalbaList
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")
开发者ID:himag1,项目名称:MashUp,代码行数:41,代码来源:castalba.py
示例19: VIPList
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)
开发者ID:rollysalvana,项目名称:pampereo-xbmc-plugins,代码行数:21,代码来源:vipplaylist.py
示例20: USALIST
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')
开发者ID:alejusar,项目名称:starthere,代码行数:24,代码来源:ibrod.py
注:本文中的resources.libs.main.addPlayL函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论