示例#1
0
def pervclips_vids(url):
	html = process.OPEN_URL(url)
	match = re.compile('itemprop="url" href="(.+?)".+?data-poster="(.+?)" data-id="1061255975" data-src="(.+?)".+?alt="(.+?)".+?</div>',re.DOTALL).findall(html)
	for url,img,vid_link,name in match:
		if '.gif' in img:
			img = re.compile('data-original="(.+?)".+?width=',re.DOTALL).findall(str(rest))[0]
			process.PLAY(name,url,1016,img,FANART,'','')
		else:
			process.PLAY(name,url,1016,img,FANART,'','')
示例#2
0
def Youtube_Playlist_Grab_Duration(url):

    #Need to view the playlist to use this one (as a list on page) max 100 vids
    HTML = OPEN_URL(url)
    block_set = re.compile('<tr class="pl-video yt-uix-tile(.+?)</tr>',
                           re.DOTALL).findall(HTML)
    for block in block_set:
        image = re.compile('data-thumb="(.+?)"').findall(str(block))
        for image in image:
            image = image
        name = re.compile('data-title="(.+?)"').findall(str(block))
        for name in name:
            name = (name).replace('&quot;',
                                  '').replace('&#39;',
                                              '\'').replace('&amp;', '&')
        duration = re.compile(
            '<div class="timestamp"><span aria-label=".+?">(.+?)</span>'
        ).findall(str(block))
        for duration in duration:
            duration = duration
        url = re.compile('data-video-ids="(.+?)"').findall(str(block))
        for url in url:
            url = url
        if 'elete' in name:
            pass
        elif 'rivate Vid' in name:
            pass
        else:
            process.PLAY(
                '[COLORred]' + str(duration) + '[/COLOR] : ' + str(name),
                'plugin://plugin.video.youtube/play/?video_id=' + str(url),
                906, str(image), '', '', '')
示例#3
0
文件: default.py 项目: eAfgin/sarcasm
def yd_playlinks(url):
    html = process.OPEN_URL(url)
    match = re.compile('class="metaframe.+?src="(.+?)"\s*frameborder',re.DOTALL).findall(html)
    for link in match:
        host = link.split('//')[1].replace('www.','')
        host = host.split('/')[0].lower()
        host = host.split('.')[0]
        process.PLAY(host,link,19,'','','','')
示例#4
0
def recent(name, url):
    html = process.OPEN_URL(url)
    match = re.compile(
        'class="latest-episode-published-date">(.+?)</span>.+?</h3>.+?<p>(.+?)<span class="toggleable-podcast-episode-body hidden">(.+?)</span>.+?<source src="(.+?)">',
        re.DOTALL).findall(html)
    for name, desc1, desc2, url in match:
        description = desc1 + desc2
        process.PLAY(name.replace('&bull;', ':'), url, 20, ICON, FANART,
                     description, '')
示例#5
0
def porn300_vids(url):
    html = process.OPEN_URL(url)
    match = re.compile('<li class="grid__item.+?href="(.+?)".+?src="(.+?)" alt="(.+?)".+?</ul>.+?</li>',re.DOTALL).findall(html)
    for url,img,name in match:
        name = name.replace('&#039;','\'')
        url = 'https://www.porn300.com'+url
        process.PLAY(name,url,1008,img,FANART,'','')
    next_page= re.compile('<li class="pagination_item" itemprop="url"><a class="btn btn-primary--light btn-pagination" itemprop="name" href="(.+?)" title="Next">',re.DOTALL).findall(html)
    for page in next_page:
        page = 'https://www.porn300.com'+page
        process.Menu('Next Page',page,1009,'https://www.porn300.com/android-icon-192x192.png',FANART,'','')
示例#6
0
def watchmygf_vids(url):
    html = requests.get(url).content
    match = re.compile(
        'class="item video.+?href="(.+?)".+?class="thumb" src="(.+?)" alt="(.+?)".+?class="icon time"></i>(.+?)</span>.+?</div>',
        re.DOTALL).findall(html)
    for url, img, name, time in match:
        time = time.strip()
        name = '([COLOR dodgerblue]%s[/COLOR]) %s' % (time, name)
        process.PLAY(name, url, 1021, img, FANART, '', '')
    next_page = re.compile('class="current"><a href="".+?href="(.+?)" title',
                           re.DOTALL).findall(html)
    for page in next_page:
        page = base + page
        process.Menu('Next Page', page, 1020, logo, FANART, '', '')
示例#7
0
文件: default.py 项目: eAfgin/sarcasm
def play_link(url):
    html = requests.get(url).content
    block = re.compile(
        'class="full"><b>Full Episode: </b></td>(.+?)class="best"><b>Best of: </b></td>',
        re.DOTALL).findall(html)
    id_match = re.compile('class="link_button".+?id="(.+?)".+?</a>',
                          re.DOTALL).findall(str(block))
    playlink = re.compile(
        'class="link" id="link_(.+?)".+?src=\'(.+?)\'.+?</p>',
        re.DOTALL).findall(html)
    for it in id_match:
        for matched_id, link in playlink:
            if it == matched_id:
                if 'youtube' in link:
                    embed = link.split('embed/')[1]
                    host = link.split('//')[1].replace('www', '')
                    host = host.split('.')[1]
                    process.PLAY(host, embed, 102, ICON, FANART, '', '')
    try:
        playlink = re.compile(
            'class="link" id="link_(.+?)".+?href="(.+?)".+?</p>',
            re.DOTALL).findall(html)
        for matched_id, linkz in playlink:
            if 'club' not in linkz:
                if 'tube' not in linkz:
                    if 'archive' in linkz:
                        arch_html = requests.get(linkz).content
                        arch_reg = re.compile(
                            'property="og:video" content="(.+?)"',
                            re.DOTALL).findall(arch_html)
                        linkzz = arch_reg[0].replace(' ', '%20')
                        host = linkz.split('//')[1].replace('www', '')
                        hostz = host.split('/')[0]
                        process.PLAY(hostz, linkzz, 20, ICON, FANART, '', '')
    except:
        pass
示例#8
0
文件: default.py 项目: eAfgin/sarcasm
def vex_playlinks(url, extra):
    html = process.OPEN_URL(url)
    match = re.compile(
        'class="entry-content">.+?<iframe src="(.+?)".+?</iframe>',
        re.DOTALL).findall(html)
    for link in match:
        consistant = requests.get(link).content
        final_links = re.compile('src&quot;:&quot;(.+?)&quot',
                                 re.DOTALL).findall(consistant)
        for links in final_links:
            irl = 'irl-'
            gool = 'googleusercontent'
            ment = 'mentor'
            if irl not in links:
                if gool not in links:
                    if ment not in links:
                        links = links.replace('\\', '')
                        host = links.split('//')[1].replace('www.', '')
                        hostname = host.split('/')[0].split('.')[0].title()
                        process.PLAY(hostname, links, 19, '', '', '', extra)
示例#9
0
def playlinks(url):
    html = process.OPEN_URL(url)
    match = re.compile('<tr>.+?<strong><a href="(.+?)".+?<strong>(.+?)</strong>.+?</tr>',re.DOTALL).findall(html)
    for link,host in match:
		process.PLAY(host,link,19,'','','','')