本文整理汇总了Python中utils.addDir函数的典型用法代码示例。如果您正苦于以下问题:Python addDir函数的具体用法?Python addDir怎么用?Python addDir使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了addDir函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: TPNCat
def TPNCat(url, index):
cathtml = utils.getHtml(url, '')
match = re.compile('<ul class="scrolling cat(.*?)</ul>', re.DOTALL | re.IGNORECASE).findall(cathtml)
match1 = re.compile('href="([^"]+)[^>]+>([^<]+)<', re.DOTALL | re.IGNORECASE).findall(match[index])
for catpage, name in match1:
utils.addDir(name, catpage, 121, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
示例2: Categories
def Categories(url):
listhtml = utils.getHtml(url, '')
match = re.compile('<a href="(.+?)" title=".+?">\n.+?<div class="thumb">\n.+?<img class="thumb" src="(.+?)" alt="(.+?)"/>').findall(listhtml)
for catpage, img, name in match:
name = utils.cleantext(name)
utils.addDir(name, catpage, 341, img, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
示例3: Categories
def Categories(url):
cathtml = utils.getHtml(url, '')
match = re.compile("<a href='/top/([^']+)'>.*?src='([^']+)' alt='([^']+)'", re.DOTALL | re.IGNORECASE).findall(cathtml)
for catid, img, name in match:
catpage = "http://anybunny.com/new/"+ catid
utils.addDir(name, catpage, 321, img)
xbmcplugin.endOfDirectory(utils.addon_handle)
示例4: Categories
def Categories(url):
cathtml = utils.getHtml(url, '')
match = re.compile('data-original="([^"]+)".*?href="([^"]+)">([^<]+)<.*?strong>([^<]+)<', re.DOTALL | re.IGNORECASE).findall(cathtml)
for img, catpage, name, videos in match:
name = name + ' [COLOR blue]' + videos + ' videos[/COLOR]'
utils.addDir(name, catpage, 131, img)
xbmcplugin.endOfDirectory(utils.addon_handle)
示例5: TPCat
def TPCat(url):
caturl = utils.getHtml(url, '')
match = re.compile('<img src="([^"]+)"[^<]+<[^"]+"([^"]+)">([^<]+)<', re.DOTALL | re.IGNORECASE).findall(caturl)
for thumb, caturl, cat in match:
caturl = "http://www.todayporn.com" + caturl + "page1.html"
utils.addDir(cat, caturl, 91, thumb, 1)
xbmcplugin.endOfDirectory(utils.addon_handle)
示例6: Main
def Main():
utils.addDir('Zoeken','http://www.ziggosporttotaal.nl/zoeken.html?s=',235,'https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/zst.png','',fanart='https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/fanart.jpg')
utils.addDir('Laatste video','http://www.ziggosporttotaal.nl/video/?sort=recent',233,'https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/zst.png','',fanart='https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/fanart.jpg')
utils.addDir('Meest bekeken','http://www.ziggosporttotaal.nl/video/?sort=most',233,'https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/zst.png','',fanart='https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/fanart.jpg')
utils.addDir('Voetbal','http://www.ziggosporttotaal.nl/video/1-voetbal/',233,'https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/zst.png','',fanart='https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/fanart.jpg')
utils.addDir('Racing','http://www.ziggosporttotaal.nl/video/22-racing/',233,'https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/zst.png','',fanart='https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/fanart.jpg')
xbmcplugin.endOfDirectory(utils.addon_handle)
示例7: Cat
def Cat(url):
cathtml = utils.getHtml(url, '')
match = re.compile('0" value="([^"]+)">([^<]+)<', re.DOTALL | re.IGNORECASE).findall(cathtml)
for catpage, name in match:
catpage = 'http://k18.co/?cat=' + catpage
utils.addDir(name, catpage, 231, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
示例8: NLCAT
def NLCAT(url, site):
siteurl = sitelist[site]
link = utils.getHtml(url, '')
tags = re.compile('<div class="category".*?href="([^"]+)".*?<h2>([^<]+)<.*?src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(link)
for caturl, catname, catimg in tags:
catimg = siteurl + catimg
utils.addDir(catname,caturl,101,catimg,site)
示例9: EXMovies
def EXMovies(url):
cathtml = utils.getHtml(url, '')
match = re.compile('<div id="movies">(.*?)</div>', re.DOTALL | re.IGNORECASE).findall(cathtml)
match1 = re.compile('href="([^"]+)[^>]+>([^<]+)<', re.DOTALL | re.IGNORECASE).findall(match[0])
for catpage, name in match1:
utils.addDir(name, catpage, 117, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
示例10: EROCat
def EROCat(url):
cathtml = utils.getHtml(url, '')
match = re.compile('<ul class="dropdown-menu">(.*?)</ul>', re.DOTALL | re.IGNORECASE).findall(cathtml)[0]
match1 = re.compile('href="(http://www.ero-tik.com/browse-[^"]+)"[^>]+>([^<]+)<', re.DOTALL | re.IGNORECASE).findall(match)
for catpage, name in match1:
utils.addDir(name, catpage, 261, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
示例11: Cat
def Cat(url):
listhtml = utils.getHtml(url, '')
match = re.compile('<li><a href="([^"]+)" rel="tag">([^<]+)<', re.DOTALL | re.IGNORECASE).findall(listhtml)
for catpage, name in match:
name = utils.cleantext(name)
utils.addDir(name, catpage, 371, '', '')
xbmcplugin.endOfDirectory(utils.addon_handle)
示例12: Cat
def Cat(url):
listhtml = utils.getHtml(url, '')
match = re.compile('<a class="item" href="([^"]+)" title="([^"]+)".*?thumb" src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(listhtml)
for catpage, name, img in match:
name = utils.cleantext(name)
utils.addDir(name, catpage, 361, img, '')
xbmcplugin.endOfDirectory(utils.addon_handle)
示例13: praias
def praias():
beachcams=[]
try:
temp= abrir_url(BeachcamURL + 'pt/livecams/')
beachcams=re.compile('<a href="/pt/livecams/(.+?)">(.+?)</a>').findall(temp)
except: print "Nao foi possivel obter as BeachCams"
try:
temp= abrir_url(SurflineURL + '/surf-report/portugal_2946/map/')
beachcams+=re.compile('\tbackground-image:url./surfdata/images/icon_hdcam_blue.gif.\n\t\t\t\t\n ;background-repeat:no-repeat;background-position:bottom left"\n href="(.+?)">(.+?)</a>').findall(temp)
except: print "Nao foi possivel obter as Surfline"
try:
temp=re.compile('Report<b class="caret">(.+?)</li></ul></li>').findall(abrir_url(SurftotalURL))[0]
beachcams+=re.compile('<a href="(.+?)" >(.+?)</a>').findall(temp)
except: print "Nao foi possivel obter as Surftotal"
beachcams.sort(key=lambda t: t[1])
for end,nome in beachcams:
nome=nome.replace('ã','ã').replace('ç','ç').replace('í','í').replace('´','á')
if re.search('surf-report',end):
end=SurflineURL + end
nome= '[B]%s[/B] (Surfline)' % nome
elif re.search('camaras-report',end):
end=SurftotalURL + end
nome= '[B]%s[/B] (Surftotal)' % nome
else:
end=BeachcamURL + 'pt/livecams/' + end
nome= '[B]%s[/B] (Beachcam.pt)' % nome
addDir(nome,end,27,tvporpath + art + 'versao-ver2.png',len(beachcams),'',False)
示例14: Main
def Main():
utils.addDir('[COLOR yellow]Featured[/COLOR]','https://chaturbate.com/?page=1',221,'','')
utils.addDir('[COLOR yellow]Female[/COLOR]','https://chaturbate.com/female-cams/?page=1',221,'','')
utils.addDir('[COLOR yellow]Couple[/COLOR]','https://chaturbate.com/couple-cams/?page=1',221,'','')
utils.addDir('[COLOR yellow]Male[/COLOR]','https://chaturbate.com/male-cams/?page=1',221,'','')
utils.addDir('[COLOR yellow]Transsexual[/COLOR]','https://chaturbate.com/transsexual-cams/?page=1',221,'','')
xbmcplugin.endOfDirectory(utils.addon_handle)
示例15: BGCat
def BGCat(url):
caturl = utils.getHtml(url, '')
match = re.compile(r'<li><a target="_self" href="([^"]+)"\s+title="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(caturl)
for videolist, name in match:
videolist = "http://www.beeg.com" + videolist
utils.addDir(name, videolist, 81, '')
xbmcplugin.endOfDirectory(utils.addon_handle)