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


Python utils.addDownLink函数代码示例

本文整理汇总了Python中utils.addDownLink函数的典型用法代码示例。如果您正苦于以下问题:Python addDownLink函数的具体用法?Python addDownLink怎么用?Python addDownLink使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了addDownLink函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: STREAMS

def STREAMS():
    streamurl = 'https://github.com/whitecream01/WhiteCream-V0.0.1/raw/master/plugin.video.uwc/streamlist.m3u'
    streamlist = utils.getHtml(streamurl, '')
    match = re.compile('#.+,(.+?)\n(.+?)\n').findall(streamlist)
    for name, url in match:
        utils.addDownLink(name, url, 9, '', '', True)
    xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:Fr33m1nd,项目名称:WhiteCream-V0.0.1,代码行数:7,代码来源:default.py

示例2: PAQList

def PAQList(url, page, onelist=None):
    if onelist:
        url = url.replace("page/1/", "page/" + str(page) + "/")
    listhtml = utils.getHtml(url, "")
    if "pornaq" in url:
        match = re.compile(
            r'<h2>\s+<a title="([^"]+)" href="([^"]+)".*?src="([^"]+)" class="attachment-primary-post-thumbnail',
            re.DOTALL | re.IGNORECASE,
        ).findall(listhtml)
        for name, videopage, img in match:
            name = utils.cleantext(name)
            utils.addDownLink(name, videopage, 62, img, "")
    elif "porn00" in url:
        match = re.compile(
            '<h2> <a title="([^"]+)" href="([^"]+)".*?src="([^"]+)" class="attachment-primary-post-thumbnail',
            re.DOTALL | re.IGNORECASE,
        ).findall(listhtml)
        for name, videopage, img in match:
            name = utils.cleantext(name)
            utils.addDownLink(name, videopage, 62, img, "")
    if not onelist:
        if re.search("<span class='current'>\d+?</span><span>", listhtml, re.DOTALL | re.IGNORECASE):
            npage = page + 1
            url = url.replace("page/" + str(page) + "/", "page/" + str(npage) + "/")
            utils.addDir("Next Page (" + str(npage) + ")", url, 61, "", npage)
        xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:Fr33m1nd,项目名称:WhiteCream-V0.0.1,代码行数:26,代码来源:hdporn.py

示例3: Main

def Main():
    utils.addDownLink('[COLOR red]Refresh Cam4 images[/COLOR]','',283,'','')
    utils.addDir('[COLOR hotpink]Featured[/COLOR]','http://www.cam4.com/featured/1',281,'',1)
    utils.addDir('[COLOR hotpink]Females[/COLOR]','http://www.cam4.com/female/1',281,'',1)
    utils.addDir('[COLOR hotpink]Couples[/COLOR]','http://www.cam4.com/couple/1',281,'',1)
    utils.addDir('[COLOR hotpink]Males[/COLOR]','http://www.cam4.com/male/1',281,'',1)
    utils.addDir('[COLOR hotpink]Transsexual[/COLOR]','http://www.cam4.com/shemale/1',281,'',1)
    xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:rofunds,项目名称:maximumTv,代码行数:8,代码来源:cam4.py

示例4: List

def List(url):
    listhtml = utils.getHtml2(url)
    match = re.compile(r"<i class='fa fa-desktop'></i> (.*?)</a></li>", re.DOTALL | re.IGNORECASE).findall(listhtml)
    for name in match:
        videopage = 'http://www.tpsoccer.net/p/' + name + '.html'
        name = 'Stream ' + name
        videopage = 'plugin://plugin.video.SportsDevil/?mode=1&amp;item=catcher%3dstreams%26url=' + urllib.quote_plus(videopage)
        utils.addDownLink(name, videopage, 300, 'https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/tp.png', '', fanart='https://raw.githubusercontent.com/doki1/repo/master/NLView%20XML/fanart.jpg')
    xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:twlizer,项目名称:plugin.video.Pseudonymous,代码行数:9,代码来源:tpsoccerstreams.py

示例5: NFScenes

def NFScenes(url):
    scenehtml = utils.getHtml(url, '')
    match = re.compile('class="scene">.*?<img class="poster" src="([^"]+)".*?data-src="([^"]+)".*?<div class="description">[^>]+>([^<]+)<', re.DOTALL | re.IGNORECASE).findall(scenehtml)
    scenecount = 1
    for img, sceneurl, desc in match:
        name = 'Scene ' + str(scenecount)
        scenecount = scenecount + 1
        utils.addDownLink(name, sceneurl, 43, img, desc)        
    xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:johnloveszoe,项目名称:WhiteCream-V0.0.1,代码行数:9,代码来源:nudeflix.py

示例6: PHList

def PHList(url):
    listhtml = utils.getHtml(url, '')
    match = re.compile('panel-img">.*?<a href="([^"]+)" title="([^"]+)".*?src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(listhtml)
    for videopage, name, img in match:
        utils.addDownLink(name, videopage, 72, img, '')
    try:
        nextp=re.compile('<a href="([^"]+)">Next', re.DOTALL | re.IGNORECASE).findall(listhtml)
        utils.addDir('Next Page', nextp[0],71,'')
    except: pass
    xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:neopack1,项目名称:WhiteCream-V0.0.1,代码行数:10,代码来源:pornhive.py

示例7: List

def List(url):
    if utils.addon.getSetting("chaturbate") == "true":
        clean_database()
    data = utils.getHtml(url, '')
    model_list = re.compile('int-each-hml">\s+<a class ="linkHandlerClass" title="([^"]+)" href="([^"]+)" target="">\s+<span[^<]+[^>]+>\s+<span[^<]+[^>]+>\s+<img[^<]+src="([^"]+)">\s+', re.DOTALL | re.IGNORECASE).findall(data)
    for model, url, img in model_list:
        name = model.replace("'s webcam","").strip()
        videourl = "http://new.naked.com" + url
        utils.addDownLink(name, videourl, 482, img, '', noDownload=True)
    xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:Mirocow,项目名称:WhiteCream-V0.0.2,代码行数:10,代码来源:naked.py

示例8: NFScenes

def NFScenes(url):
    scenehtml = utils.getHtml(url, '')
    match = re.compile(r'class="scene">.*?href="([^"]+)"[^(]+?\(([^)]+)\).*?<div class="description">[^>]+>([^<]+)<', re.DOTALL | re.IGNORECASE).findall(scenehtml)
    scenecount = 1
    for sceneurl, img, desc in match:
        name = 'Scene ' + str(scenecount)
        scenecount = scenecount + 1
        sceneurl = 'http://www.nudeflix.com' + sceneurl
        utils.addDownLink(name, sceneurl, 43, img, desc)        
    xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:natonatonato,项目名称:WhiteCream-V0.0.1,代码行数:10,代码来源:nudeflix.py

示例9: List

def List(url):
    listhtml = utils.getHtml(url, '')
    match = re.compile('<li>\n.+?<a href="(.+?)" title="(.+?)">\n.+?<div class="thumb thumb-paged" data-screen-main="1">\n\n.+?<img src="(.+?)"').findall(listhtml)
    for videopage, name, img in match:
        name = utils.cleantext(name)
        utils.addDownLink(name, videopage, 342, img, '')
    try:
        nextp=re.compile('<a href="(.+?)" title="Next Page" data-page-num.+?>Next page').findall(listhtml)
        utils.addDir('Next Page', 'http://www.hdzog.com' + nextp[0], 341,'')
    except: pass
    xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:opesboy,项目名称:WhiteCream-V0.0.1,代码行数:11,代码来源:hdzog.py

示例10: YFTList

def YFTList(url):
    listhtml = utils.getHtml(url, '')
    match = re.compile('<a href="([^"]+)"[^<]+<[^<]+<img src="([^"]+)" alt="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(listhtml)
    for videopage, img, name in match:
        utils.addDownLink(name, videopage, 192, img, '')
    try:
        nextp=re.compile('<a href="([^"]+)">&raquo;', re.DOTALL | re.IGNORECASE).findall(listhtml)
        nextp = "http://www.yourfreetube.net/" + nextp[0]
        utils.addDir('Next Page', nextp, 191,'')
    except: pass
    xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:jake47,项目名称:WhiteCream-V0.0.1.bundle,代码行数:11,代码来源:yourfreetube.py

示例11: List

def List(url):
    listhtml = utils.getHtml(url, '')
    match = re.compile(r'<a class="thumbnail" href="(.+?)">\n<script.+?</script>\n<figure>\n<img  id=".+?" src="(.+?)".+?/>\n<figcaption>\n<span class="video-icon"><i class="fa fa-play"></i></span>\n<span class="duration"><i class="fa fa-clock-o"></i>(.+?)</span>\n(.+?)\n').findall(listhtml)
    for videopage, img, duration, name in match:
        name = utils.cleantext(name) + ' ' + duration
        utils.addDownLink(name, 'http://www.mrsexe.com/' + videopage, 402, img, '')
    try:
        nextp=re.compile(r'<li class="arrow"><a href="(.+?)">suivant</li>').findall(listhtml)
        utils.addDir('Next Page', 'http://www.mrsexe.com/' + nextp[0], 401,'')
    except: pass
    xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:opesboy,项目名称:WhiteCream-V0.0.1,代码行数:11,代码来源:mrsexe.py

示例12: ListSearch

def ListSearch(url):
    html = utils.getHtml(url, '').replace('\n','')
    match = re.compile('<p>(.+?)</p><p>.+?<img src="(.+?)".*?/>.*?</a>.*?<a href="(.+?)" class="more-link">').findall(html)
    for name, img, videopage in match:
        name = utils.cleantext(name)
        utils.addDownLink(name, videopage, 422, img, '')
    try:
        nextp = re.compile('<link rel="next" href="(.+?)" />', re.DOTALL | re.IGNORECASE).findall(html)
        utils.addDir('Next Page', nextp[0], 425,'')
    except: pass
    xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:dubhead1,项目名称:WhiteCream-V0.0.1,代码行数:11,代码来源:xxxsorg.py

示例13: List

def List(url):
    listhtml = utils.getHtml(url, '')
    match = re.compile(r'class="content-list-thumb">\s+<a href="([^"]+)" title="([^"]+)">.*?src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(listhtml)
    for videopage, name, img in match:
        name = utils.cleantext(name)
        utils.addDownLink(name, videopage, 232, img, '')
    try:
        nextp=re.compile('next page-numbers" href="([^"]+)">&raquo;', re.DOTALL | re.IGNORECASE).findall(listhtml)[0]
        utils.addDir('Next Page', nextp, 231,'')
    except: pass
    xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:Mirocow,项目名称:WhiteCream-V0.0.2,代码行数:11,代码来源:k18.py

示例14: P00List

def P00List(url, page):
    listhtml = utils.getHtml(url, '')
    match = re.compile('src="([^"]+)" class="attachment-primary-post-thumbnail wp-post-image".*?<a title="([^"]+)" href="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(listhtml)
    for img, name, videopage in match:
        name = utils.cleantext(name)
        utils.addDownLink(name, videopage, 62, img, '')
    if re.search("<span class='current'>\d+?</span><span>", listhtml, re.DOTALL | re.IGNORECASE):
        npage = page + 1        
        url = url.replace('page/'+str(page)+'/','page/'+str(npage)+'/')
        utils.addDir('Next Page ('+str(npage)+')', url, 65, '', npage)
    xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:natonatonato,项目名称:WhiteCream-V0.0.1,代码行数:11,代码来源:hdporn.py

示例15: List

def List(url):
    listhtml = utils.getHtml(url, '')
    match = re.compile(r'<div class="quadrato">\s*?<a href="([^"]+)"\s*?title="([^"]+)".*?src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(listhtml)
    for videopage, name, img in match:
        name = utils.cleantext(name)
        utils.addDownLink(name, videopage, 172, img, '')
    try:
        nextp=re.compile(r"""current(?:"|')>\d+</span><a.*?href=(?:"|')([^'"]+)""", re.DOTALL | re.IGNORECASE).findall(listhtml)[0]
        utils.addDir('Next Page', nextp, 171,'')
    except: pass
    xbmcplugin.endOfDirectory(utils.addon_handle)
开发者ID:iamlegend2525,项目名称:WhiteCream-V0.0.1,代码行数:11,代码来源:streamxxx.py


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