示例#1
0
def PHVideo(url, name, download=None):
    progress.create('Play video', 'Searching videofile.')
    progress.update( 10, "", "Loading video page", "" )
    Supported_hosts = ['Openload.io', 'StreamCloud', 'NowVideo', 'FlashX', 'www.flashx.tv', 'streamcloud.eu', 'streamin.to']
    videopage = utils.getHtml(url, '')
    match = re.compile(r'<li id="link-([^"]+).*?xs-12">\s+Watch it on ([\w\.]+)', re.DOTALL | re.IGNORECASE).findall(videopage)
    if len(match) > 1:
        sites = []
        vidurls = []
        for videourl, site in match:
            if site in Supported_hosts:
                sites.append(site)
                vidurls.append(videourl)
        if len(sites) ==  1:
            sitename = match[0][1]
            siteurl = match[0][0]
        else:
            site = utils.dialog.select('Select video site', sites)
            sitename = sites[site]
            siteurl = vidurls[site]
    else:
        sitename = match[0][1]
        siteurl = match[0][0]
    outurl = "http://www.pornhive.tv/en/out/" + siteurl
    progress.update( 20, "", "Getting video page", "" )
    if 'loud' in sitename:
        progress.update( 30, "", "Getting StreamCloud", "" )
        playurl = getStreamCloud(outurl)
    elif "lash" in sitename:
        progress.update( 30, "", "Getting FlashX", "" )
        playurl = getFlashX(outurl)
    elif sitename == "NowVideo":
        progress.update( 30, "", "Getting NowVideo", "" )
        playurl = getNowVideo(outurl)        
    elif "Openload" in sitename:
        progress.update( 30, "", "Getting Openload", "" )
        progress.close()
        utils.PLAYVIDEO(outurl, name, download)
        return
    elif "streamin" in sitename:
        progress.update( 30, "", "Getting Streamin", "" )
        streaming = utils.getHtml(outurl, '')
        outurl=re.compile("action='([^']+)'").findall(streaming)[0]
        progress.close()
        utils.playvideo(outurl, name, download)
        return
    else:
        progress.close()
        utils.dialog.ok('Sorry','This host is not supported.')
        return
    progress.update( 90, "", "Playing video", "" )
    progress.close()
    if download == 1:
        utils.downloadVideo(playurl, name)
    else:
        iconimage = xbmc.getInfoImage("ListItem.Thumb")
        listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
        listitem.setInfo('video', {'Title': name, 'Genre': 'P**n'})
        xbmc.Player().play(playurl, listitem)
示例#2
0
文件: beeg.py 项目: rofunds/maximumTv
def BGVersion():
    bgpage = utils.getHtml('http://beeg.com','')
    bgversion = re.compile(r"cpl/(\d+)\.js", re.DOTALL | re.IGNORECASE).findall(bgpage)[0]
    bgsavedversion = addon.getSetting('bgversion')
    if bgversion <> bgsavedversion:
        addon.setSetting('bgversion',bgversion)
        bgjspage = utils.getHtml('http://static.beeg.com/cpl/'+bgversion+'.js','http://beeg.com')
        bgsalt = re.compile('beeg_salt="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(bgjspage)[0]
        addon.setSetting('bgsalt',bgsalt)
示例#3
0
def PPlayvid(url, name):
    videopage = utils.getHtml(url, '')
    match = re.compile('<iframe.*?src="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)
    iframepage = utils.getHtml(match[0], url)
    video720 = re.compile("_720 = '([^']+)'", re.DOTALL | re.IGNORECASE).findall(iframepage)
    videourl = video720[0]
    iconimage = xbmc.getInfoImage("ListItem.Thumb")
    listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
    listitem.setInfo('video', {'Title': name, 'Genre': 'P**n'})
    xbmc.Player().play(videourl, listitem)
示例#4
0
def Playvid(url, name, download):
    videopage = utils.getHtml(url)
    plurl = re.compile('\?u=([^"]+)"', re.DOTALL | re.IGNORECASE).findall(videopage)[0]
    plurl = 'http://sexix.net/qaqqew/playlist.php?u=' + plurl
    plpage = utils.getHtml(plurl, url)
    videourl = re.compile('file="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(plpage)[0]
    if videourl:
        utils.playvid(videourl, name, download)
    else:
        utils.notify('Oh oh','Couldn\'t find a video')
示例#5
0
def Playvid(url, name, download=None):
    print "cat3movie::playvid " + url
    progress.create('Play video', 'Searching videofile.')
    progress.update( 10, "", "Loading video page", "" )
    html = utils.getHtml(url, '')
    embedLinks = re.compile('<a href="(.+?)" rel="nofollow" target="_blank">').findall(html)
    url = ''
    for link in embedLinks:
        html = utils.getHtml(link, '')
        base64str = re.compile('Base64.decode\("(.+?)"\)').findall(html)
        url = url + " " + base64.b64decode(base64str[0])
    utils.playvideo(url, name, download)
示例#6
0
def Playvid(url, name, download=None):
    print "mrsexe::Playvid " + url
    html = utils.getHtml(url, '')
    videourl = re.compile(r"src='(/inc/clic\.php\?video=.+?&cat=mrsex.+?)'").findall(html)
    html = utils.getHtml('http://www.mrsexe.com/' + videourl[0], '')
    videourls = re.compile(r"'file': \"(.+?)\",.+?'label': '(.+?)'", re.DOTALL).findall(html)
    videourls = sorted(videourls, key=lambda tup: tup[1], reverse=True)
    videourl = videourls[0][0]
    if download == 1:
        utils.downloadVideo(videourl, name)
    else:    
        iconimage = xbmc.getInfoImage("ListItem.Thumb")
        listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
        listitem.setInfo('video', {'Title': name, 'Genre': 'P**n'})
        xbmc.Player().play(videourl, listitem)
示例#7
0
def Playvid(url, name, download=None):
    progress.create('Play video', 'Searching videofile.')
    progress.update( 10, "", "Loading video page", "" )
    html = utils.getHtml(url, '')
    embedLinks = re.compile('<a href="([^"]+)" rel="nofollow" target="_blank">').findall(html)
    url = ''
    for link in embedLinks:
        if 'embedlink' in link:
            try:
                html = utils.getHtml(link, '')
                if 'Base64' in html:
                    base64str = re.compile(r'Base64\.decode\("([^"]+)"').findall(html)
                    url = url + " " + base64.b64decode(base64str[0])
            except: pass
    utils.playvideo(url, name, download, url)
示例#8
0
def BGPlayvid(url, name, download=None):
    videopage = utils.getHtml(url, '')
    match = re.compile("'720p': '([^']+)'", re.DOTALL | re.IGNORECASE).findall(videopage)
    if not match:
        match = re.compile("'480p': '([^']+)'", re.DOTALL | re.IGNORECASE).findall(videopage)
    if not match:
        match = re.compile("'240p': '([^']+)'", re.DOTALL | re.IGNORECASE).findall(videopage)
    if match:    
        videourl = match[0]
        if download == 1:
            utils.downloadVideo(videourl, name)
        else:
            iconimage = xbmc.getInfoImage("ListItem.Thumb")
            listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
            listitem.setInfo('video', {'Title': name, 'Genre': 'P**n'})
            listitem.setProperty("IsPlayable","true")
            if int(sys.argv[1]) == -1:
                pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
                pl.clear()
                pl.add(videourl, listitem)
                xbmc.Player().play(pl)
                #xbmc.Player().play(videourl, listitem)
            else:
                listitem.setPath(str(videourl))
                xbmcplugin.setResolvedUrl(utils.addon_handle, True, listitem)
示例#9
0
def STREAMS():
    streamurl = 'http://bit.ly/uwcstreams'
    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)
示例#10
0
def PHCat(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile('<ul class="dropdown-menu my-drop">(.*?)</ul>', 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, 71, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)   
示例#11
0
def Tags(url):
    html = utils.getHtml(url, '')
    match = re.compile('<div class="tagcloud">(.*?)</div>', re.DOTALL | re.IGNORECASE).findall(html)
    match1 = re.compile("href='([^']+)[^>]+>([^<]+)<", re.DOTALL | re.IGNORECASE).findall(match[0])
    for catpage, name in match1:
        utils.addDir(name, catpage, 181, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#12
0
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)
示例#13
0
def Categories(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile('Clips</a>.+<ul class="sub-menu">(.*?)</ul>', 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, 171, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#14
0
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)
def WXFTPS(url):
    tpshtml = utils.getHtml(url, '')
    match = re.compile("<li><a href='([^']+)[^>]+>([^<]+)", re.DOTALL | re.IGNORECASE).findall(tpshtml)
    for tpsurl, name in match:
        tpsurl = tpsurl + 'page/1/'
        utils.addDir(name, tpsurl, 11, '', 1)
    xbmcplugin.endOfDirectory(utils.addon_handle)    
示例#16
0
def Categories(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile('<li class="cat-item.+?"><a href="(.+?)" title=".+?">(.+?)</a> \((.+?)\)', re.DOTALL | re.IGNORECASE).findall(cathtml)
    for catpage, name, videos in match:
        name = name + ' [COLOR deeppink](%s)[/COLOR]' % videos
        utils.addDir(name, catpage, 471, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#17
0
def BGPlayvid(url, name, download=None):
    videopage = utils.getHtml(url, "")
    videopage = json.loads(videopage)

    if not videopage["240p"] == None:
        url = videopage["240p"].encode("utf8")
    if not videopage["480p"] == None:
        url = videopage["480p"].encode("utf8")
    if not videopage["720p"] == None:
        url = videopage["720p"].encode("utf8")

    url = url.replace("{DATA_MARKERS}", "data=pc.DE")
    if not url.startswith("http:"):
        url = "https:" + url

    key = re.compile("/key=(.*?)%2Cend", re.DOTALL | re.IGNORECASE).findall(url)[0]
    decryptedkey = decrypt_key(key)

    videourl = url.replace(key, decryptedkey)

    if download == 1:
        utils.downloadVideo(videourl, name)
    else:
        iconimage = xbmc.getInfoImage("ListItem.Thumb")
        listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
        listitem.setInfo("video", {"Title": name, "Genre": "P**n"})
        listitem.setProperty("IsPlayable", "true")
        if int(sys.argv[1]) == -1:
            pl = xbmc.PlayList(xbmc.PLAYLIST_VIDEO)
            pl.clear()
            pl.add(videourl, listitem)
            xbmc.Player().play(pl)
        else:
            listitem.setPath(str(videourl))
            xbmcplugin.setResolvedUrl(utils.addon_handle, True, listitem)
示例#18
0
def YFTCat(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile('<ul class="pm-browse-ul-subcats">(.*?)</ul>', re.DOTALL | re.IGNORECASE).findall(cathtml)
    match1 = re.compile('<a href="([^"]+)" class="">([^<]+)<', re.DOTALL | re.IGNORECASE).findall(match[0])
    for catpage, name in match1:
        utils.addDir(name, catpage, 191, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)   
示例#19
0
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)
示例#20
0
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)
示例#21
0
def Categories(url, index=0):
    cathtml = utils.getHtml(url, '')
    match = re.compile("<ul class='children'>(.*?)</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, 232, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#22
0
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)
示例#23
0
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)
示例#24
0
def PHVideo(url, name):
    progress.create("Play video", "Searching videofile.")
    progress.update(10, "", "Loading video page", "")
    videopage = utils.getHtml(url, "")
    match = re.compile(r'<li id="link-([^"]+).*?xs-12">\s+Watch it on ([\w]+)', re.DOTALL | re.IGNORECASE).findall(
        videopage
    )
    if len(match) > 1:
        sites = []
        for videourl, site in match:
            sites.append(site)
        site = utils.dialog.select("Select video site", sites)
        sitename = match[site][1]
        siteurl = match[site][0]
    else:
        sitename = match[0][1]
        siteurl = match[0][0]
    outurl = "http://www.pornhive.tv/en/out/" + siteurl
    progress.update(20, "", "Getting video page", "")
    if sitename == "StreamCloud":
        progress.update(30, "", "Getting StreamCloud", "")
        playurl = getStreamCloud(outurl)
    elif sitename == "FlashX":
        progress.update(30, "", "Getting FlashX", "")
        playurl = getFlashX(outurl)
    else:
        progress.close()
        utils.dialog.ok("Sorry", "This host is not supported.")
        return
    progress.update(90, "", "Playing video", "")
    iconimage = xbmc.getInfoImage("ListItem.Thumb")
    listitem = xbmcgui.ListItem(name, iconImage="DefaultVideo.png", thumbnailImage=iconimage)
    listitem.setInfo("video", {"Title": name, "Genre": "P**n"})
    xbmc.Player().play(playurl, listitem)
示例#25
0
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)
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)
示例#27
0
def getBMW(url):
    videopage = utils.getHtml(url, '')
    #redirecturl = utils.getVideoLink(url, '')
    #videodomain = re.compile("http://([^/]+)/", re.DOTALL | re.IGNORECASE).findall(redirecturl)[0]
    videos = re.compile(r'file: "([^"]+mp4)", label: "\d', re.DOTALL | re.IGNORECASE).findall(videopage)
    videourl = videos[-1]
    return videourl
示例#28
0
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)   
示例#29
0
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)   
示例#30
0
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)
示例#31
0
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)
示例#32
0
def WXFCat(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile('data-src="([^"]+)".*?<a href="([^"]+)"[^<]+<span>([^<]+)</s.*?">([^<]+)', re.DOTALL | re.IGNORECASE).findall(cathtml)
    for img, catpage, name, videos in match:
        catpage = catpage + 'page/1/'
        name = name + ' [COLOR blue]' + videos + '[/COLOR]'
        utils.addDir(name, catpage, 11, img, 1)
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#33
0
def A2Z(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile(r'class="cat_section"><a\s+href="([^"]+)"[^>]+>([^<]+)<.*?src="([^"]+)"(.*?)</div>', re.DOTALL | re.IGNORECASE).findall(cathtml)
    for catpage, name, img, other in match:
        if 'uncensored' in other:
            name = name + " [COLOR hotpink]Uncensored[/COLOR]"
        utils.addDir(name, catpage, 461, img)    
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#34
0
def Categories(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile(
        '<a href="(http://czechhd.net/category/[^"]+)" >([^<]+)<',
        re.DOTALL | re.IGNORECASE).findall(cathtml)
    for catpage, name in match:
        utils.addDir(name, catpage, 311, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#35
0
def Categories(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile(
        '<li.+?class=".+?menu-item-object-post_tag.+?"><a href="(.+?)">(.+?)</a></li>'
    ).findall(cathtml)
    for catpage, name in match:
        utils.addDir(name, catpage, 411, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#36
0
def Cat(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile("gories(.*?)titre18", re.DOTALL | re.IGNORECASE).findall(cathtml)
    match1 = re.compile(r'<a href="\.\.([^"]+)" class="link1">([^<]+)</a>', re.DOTALL | re.IGNORECASE).findall(match[0])
    for caturl, name in match1:
        catpage = 'http://www.absoluporn.com' + caturl
        utils.addDir(name, catpage, 301, '', '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#37
0
def Categories(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile(
        '<li id=".+?" class=".+?menu-item-object-category.+?"><a href="(.+?)">(.+?)</a></li>',
        re.DOTALL | re.IGNORECASE).findall(cathtml)
    for catpage, name in match:
        utils.addDir(name, catpage, 351, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#38
0
def WXFTPS(url):
    tpshtml = utils.getHtml(url, '')
    match = re.compile("<li><a href='([^']+)[^>]+>([^<]+)",
                       re.DOTALL | re.IGNORECASE).findall(tpshtml)
    for tpsurl, name in match:
        tpsurl = tpsurl + 'page/1/'
        utils.addDir(name, tpsurl, 11, '', 1)
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#39
0
def Categories(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile("Kategorien</span>.*?<ul>(.*?)</ul>", re.DOTALL | re.IGNORECASE).findall(cathtml)
    match1 = re.compile(r'href="([^"]+)"[^>]+>([^<]+)</a> \((\d+)', re.DOTALL | re.IGNORECASE).findall(match[0])
    for catpage, name, videos in match1:
        name = name + ' [COLOR blue](%s)[/COLOR]' % videos
        utils.addDir(name, catpage, 331, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#40
0
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)
示例#41
0
def getBMW(url):
    videopage = utils.getHtml(url, '')
    #redirecturl = utils.getVideoLink(url, '')
    #videodomain = re.compile("http://([^/]+)/", re.DOTALL | re.IGNORECASE).findall(redirecturl)[0]
    videos = re.compile(r'file: "([^"]+mp4)", label: "\d',
                        re.DOTALL | re.IGNORECASE).findall(videopage)
    videourl = videos[-2]
    return videourl
示例#42
0
def Categories2(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile(r"href='/top/([^']+)'>([^<]+)</a> <a>([^)]+\))", re.DOTALL | re.IGNORECASE).findall(cathtml)
    for catid, name, videos in match:
        name = name + " [COLOR deeppink]" + videos + "[/COLOR]"
        catpage = "http://anybunny.com/new/"+ catid
        utils.addDir(name, catpage, 321, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#43
0
def getNowVideo(url):
    progress.update( 50, "", "Opening NowVideo page", "" )
    videopage = utils.getHtml(url, '')
    fileid=re.compile('flashvars.file="(.+?)";').findall(videopage)[0]
    codeid=re.compile('flashvars.cid="(.+?)";').findall(videopage)
    if(len(codeid) > 0):
         codeid=codeid[0]
    else:
         codeid=""
    keycode=re.compile('flashvars.filekey=(.+?);').findall(videopage)[0]
    keycode=re.compile('var\s*'+keycode+'="(.+?)";').findall(videopage)[0]
    videolink = "http://www.nowvideo.sx/api/player.api.php?codes="+urllib.quote_plus(codeid) + "&key="+urllib.quote_plus(keycode) + "&file=" + urllib.quote_plus(fileid)
    progress.update( 60, "", "Grabbing video file", "" ) 
    vidcontent = utils.getHtml(videolink, '')
    videourl = re.compile('url=(.+?)\&').findall(vidcontent)[0]
    progress.update( 80, "", "Returning video file", "" )      
    return videourl
示例#44
0
def HQCAT(url):
    link = utils.getHtml(url, '')
    tags = re.compile('<a href="([^"]+)"[^<]+<img src="([^"]+)" alt="([^"]+)"', re.DOTALL | re.IGNORECASE).findall(link)
    for caturl, catimg, catname in tags:
        caturl = "http://www.hqporner.com" + caturl
        catimg = "http://www.hqporner.com" + catimg        
        utils.addDir(catname,caturl,151,catimg)
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#45
0
    def processOnePost(self, book):
        url1 = "https://bbs.hupu.com/%s.html" % (book[0])
        status_code, html = utils.getHtml(url1)
        print("status_code, ", status_code)
        if status_code != 200:
            return

        soup = BeautifulSoup(html, "lxml")
        chucuole = soup.find("h4")
        if chucuole != None:
            print(chucuole.get_text())
            if chucuole.get_text().startswith("\n嗯,出错了..."):
                print("嗯,出错了...")
                return

        subhead = soup.find_all(attrs={"class": "subhead"})
        subheadstr = subhead[0].get_text()

        floor_box = soup.find_all(attrs={"class": "floor_box"})
        liangle = list(
            map(
                lambda x: '' if x.find(attrs={"class": "ilike_icon_list"}) is
                None else x.find(attrs={
                    "class": "ilike_icon_list"
                }).get_text(), floor_box))
        lianglei = [
            int(e[3:-1]) if e.startswith("亮了") else -1 for e in liangle
        ]
        responses = list(
            map(
                lambda x: '' if x.find(attrs={"class": "quote-content"}) is
                None else x.find(attrs={
                    "class": "quote-content"
                }).get_text(), floor_box))

        # responses_2 = [e[:e.rfind("发自虎扑")].replace("\n","") if e.rfind("发自虎扑")>=0 else e.replace("\n","") for e in responses]
        responses_2 = [
            e[:e.rfind("发自虎扑")].replace("\n", "") if e.rfind("发自虎扑") >= 0 else
            e.replace("发自手机虎扑 m.hupu.com", "").replace("\n", "")
            for e in responses
        ]

        result_list = [(e1, e2) for e1, e2 in zip(lianglei, responses_2)
                       if len(e2) >= 6 and e1 >= 0]
        if result_list is None or len(result_list) < 10:
            return

        result_list.sort(key=lambda x: x[0], reverse=True)
        result_list = result_list[4:]
        result_list_v2 = [e for e in result_list if 0 < e[0] <= 37]
        if result_list_v2 is not None and len(result_list_v2) > 0:
            result = result_list_v2[random.randint(0, len(result_list_v2) - 1)]
            response_str = result[1]
        else:
            response_str = result_list[3][1]

        self._post_writer.write("%s\001%s\001\n" % (url1, response_str))
        self._post_writer.flush()
示例#46
0
def NFCat(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile(r'<li>\s+<a href="/browse/category/([^"]+)">([^<]+)<',
                       re.DOTALL | re.IGNORECASE).findall(cathtml)
    for catpage, name in match:
        catpage = catpage.replace(' ', '%20')
        catpage = 'http://www.nudeflix.com/browse/category/' + catpage + '/cover?order=released&page=1'
        utils.addDir(name, catpage, 41, '', 1)
    xbmcplugin.endOfDirectory(utils.addon_handle)
def PHCat(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile('<ul class="dropdown-menu my-drop">(.*?)</ul>',
                       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, 71, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#48
0
def Tags(url):
    html = utils.getHtml(url, '')
    match = re.compile('<div class="tagcloud">(.*?)</div>',
                       re.DOTALL | re.IGNORECASE).findall(html)
    match1 = re.compile("href='([^']+)[^>]+>([^<]+)<",
                        re.DOTALL | re.IGNORECASE).findall(match[0])
    for catpage, name in match1:
        utils.addDir(name, catpage, 171, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#49
0
def Categories(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile(
        '<a class="tooltip" href="(http://www.hclips.com/categories/.+?)" id=".+?">.+?<strong>(.+?)</strong>.+?<img src="(http://hclips.com/contents/categories/.+?)".+?height="88" width="119">',
        re.DOTALL).findall(cathtml)
    for catpage, name, img, in match:
        if not name.startswith('Gay'):
            utils.addDir(name, catpage, 381, img, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#50
0
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)
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)
示例#52
0
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)
示例#53
0
def Categories(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile('<div class="category-wrapper">.+?<a href="(.+?)"  alt="(.+?)">.+?<img src="(.+?)"', re.DOTALL).findall(cathtml)
    for catpage, name, img, in sorted(match, key=lambda item: item[1]):
        if '?' in catpage:
            utils.addDir(name, 'http://www.boyfriendtv.com' + catpage + "&o=cm", 385, img, '')
        else:
            utils.addDir(name, 'http://www.boyfriendtv.com' + catpage + "?o=cm", 385, img, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#54
0
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)
示例#55
0
def PTCat(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile('c=([^"]+)".*?original="([^"]+)" title="([^"]+)"',
                       re.DOTALL | re.IGNORECASE).findall(cathtml)
    for catid, img, name in match:
        img = "http://www.porntrex.com/" + img
        catpage = "http://www.porntrex.com/videos?c=" + catid + "&o=mr&page=1"
        utils.addDir(name, catpage, 51, img, 1)
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#56
0
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)
示例#57
0
def Categories(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile('<li id="categories-2"(.*?)</ul>',
                       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, 141, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
示例#58
0
def Categories(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile(
        '<li class="cat-item.+?"><a href="(.+?)" title=".+?">(.+?)</a> \((.+?)\)',
        re.DOTALL | re.IGNORECASE).findall(cathtml)
    for catpage, name, videos in match:
        name = name + ' [COLOR deeppink](%s)[/COLOR]' % videos
        utils.addDir(name, catpage, 471, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
def HCA2Z(url):
    link = utils.getHtml(url, '')
    match = re.compile('hentai-series/([^/]+)/">([^<]+)',
                       re.DOTALL | re.IGNORECASE).findall(link)
    for link, name in match:
        url = 'http://www.hentaicraving.com/hentai-series/' + link + '/'
        img = 'http://www.hentaicraving.com/images/' + link + '.jpg'
        addHCDir(name, url, 31, img, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)
def YFTCat(url):
    cathtml = utils.getHtml(url, '')
    match = re.compile('<ul class="pm-browse-ul-subcats">(.*?)</ul>',
                       re.DOTALL | re.IGNORECASE).findall(cathtml)
    match1 = re.compile('<a href="([^"]+)" class="">([^<]+)<',
                        re.DOTALL | re.IGNORECASE).findall(match[0])
    for catpage, name in match1:
        utils.addDir(name, catpage, 191, '')
    xbmcplugin.endOfDirectory(utils.addon_handle)