当前位置: 首页>>代码示例>>Python>>正文


Python utils.addDir函数代码示例

本文整理汇总了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)
开发者ID:opesboy,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:thepornnation.py

示例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)
开发者ID:opesboy,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:hdzog.py

示例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)
开发者ID:NothingGnome,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:anybunny.py

示例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)   
开发者ID:Fr33m1nd,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:xvideospanish.py

示例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)
开发者ID:jake47,项目名称:WhiteCream-V0.0.1.bundle,代码行数:7,代码来源:todayporn.py

示例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)
开发者ID:NLViewJeroen,项目名称:NLView-Repository,代码行数:7,代码来源:ziggosporttotaal.py

示例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)   
开发者ID:Mirocow,项目名称:WhiteCream-V0.0.2,代码行数:7,代码来源:k18.py

示例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)
开发者ID:opesboy,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:nltubes.py

示例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)
开发者ID:Fr33m1nd,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:elreyx.py

示例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)
开发者ID:RaspberryMCAdmin,项目名称:DevProjects,代码行数:7,代码来源:erotik.py

示例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)
开发者ID:opesboy,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:freeomovie.py

示例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)
开发者ID:Fr33m1nd,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:tubepornclassic.py

示例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('&#227;','ã').replace('&#231;','ç').replace('&#237;','í').replace('&#180;','á')
        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)
开发者ID:brunosantos,项目名称:plugin.video.kodi,代码行数:27,代码来源:praias.py

示例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)
开发者ID:neopack1,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:chaturbate.py

示例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)
开发者ID:jake47,项目名称:WhiteCream-V0.0.1.bundle,代码行数:7,代码来源:beeg.py


注:本文中的utils.addDir函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。