コード例 #1
0
def ListDirectDownloadTVLinks(mname, url):
    ok = True
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink(
            "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
            '', '')
    match = re.compile('{"url":"([^"]+?)","hostname":"([^"]+?)"}').findall(url)
    prev = ''
    archived = ''
    for url, host in match:
        if (host == prev and not host in archived):
            archived += host
        prev = host
    h = 0
    for url, host in match:
        thumb = host.lower()
        urlExceptions = re.compile('rar').findall(url)
        if not (urlExceptions
                or host in archived) and main.supportedHost(host):
            h += 1
            main.addDown2(mname + ' [COLOR blue]' + host.upper() + '[/COLOR]',
                          url, 210, art + "/hosts/" + thumb + ".png",
                          art + "/hosts/" + thumb + ".png")
    if not h:
        xbmcplugin.endOfDirectory(int(sys.argv[1]), False, False)
        xbmc.executebuiltin(
            "XBMC.Notification(Sorry,No Playable Links Found,2000)")
コード例 #2
0
def LINKTV4(mname,url):
        xbmc.executebuiltin("XBMC.Notification(Please Wait!,Collecting Hosts,3000)")
        link=main.OPENURL(url)
        link= link.replace('TV Rage','').replace('Homepage','').replace('href="http://www.tvrage.com','').replace('href="http://www.cbs.com','').replace('Torrent Search','').replace('Season Download','').replace('href="http://uppix.net','').replace('href="http://www.torrentz.com','').replace('href="http://directdownload.tv','')
        ok=True
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
        match=re.compile('<a href="(.+?)" target="_blank">(.+?)</a>').findall(link)
        print len(match)
        for url, host in match:
                thumb=host.lower()
                match5=re.compile('Part').findall(host)
                if len(match5)>0:
                        match6=re.compile('http://(.+?)/.+?').findall(url)
                        for url2 in match6:
                            host2 = url2.replace('www.','').replace('.in','').replace('.net','').replace('.com','').replace('.to','').replace('.org','').replace('.ch','')
                        thumb=host2.lower()
                match3=re.compile('720p').findall(url)
                match4=re.compile('mp4').findall(url)
                
                
                if len(match3)>0:
                    host =host+' [COLOR red]HD[/COLOR]'
                elif len(match4)>0:
                    host =host+' [COLOR green]SD MP4[/COLOR]'
                else:
                    host =host+' [COLOR blue]SD[/COLOR]'
                match2=re.compile('rar').findall(url)
                if len(match2)==0:
                        hosted_media = urlresolver.HostedMediaFile(url=url, title=host)
                        match2=re.compile("{'url': '(.+?)', 'host': '(.+?)', 'media_id': '.+?'}").findall(str(hosted_media))
                        for murl,name in match2:
                                main.addDown2(mname+' [COLOR blue]'+host+'[/COLOR]',murl,210,art+thumb+".png",art+thumb+".png")
コード例 #3
0
ファイル: pftv.py プロジェクト: alejusar/starthere
def LISTHOST(mname,murl,thumb):
    epi = re.findall('\ss(\d+)e(\d+)\s',mname + " ",re.I)
    for s,e in epi: pass
    if e[0:1]=='0': epis=e[1:]
    else: epis=e
    CheckNextEpi= int(epis)+1
    if(len(str(CheckNextEpi))==1): CheckNextEpi = "0" + str(CheckNextEpi)
    CheckNextEpi ="S" + str(s) + "E" + str(CheckNextEpi)
    CurrentEpi = re.search('(?i)(s\d+e\d+)',mname)
    link=main.OPENURL(murl)
    link=link.replace('\r','').replace('\n','').replace('\t','')
    if selfAddon.getSetting("hide-download-instructions") != "true": main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    if CheckNextEpi in link: links = re.search('<td class="mnllinklist" align="right"><div class="right">'+CurrentEpi.group(1)+'.+?</div>(.+?)<div class="right">'+CheckNextEpi+'.+?</div>', link)
    else: links = re.search('<td class="mnllinklist" align="right"><div class="right">'+CurrentEpi.group(1)+'.+?</div>(.+?)<!-- End of the page footer -->', link)
    if links:
        links = links.group(1)
        match=re.compile('''<a onclick='.+?href="([^"]+?)" target=".+?"><div>.+?</div><span>Loading Time: <span class='.+?'>([^<]+?)</span><br/>Host:(.+?)<br/>''', re.DOTALL).findall(links)
        for url, loadtime, name in match:
            domain=name    
            name=name.replace(' ','')
            if name[0:1]=='.': name=name[1:]
            name=name.split('.')[0]
            if main.supportedHost(name.strip().lower()):
                try:mediaID=url.split('?id=')[1]
                except:mediaID=url.split('http://')[1].split('/')[1]
                main.addDown2(mname+' [COLOR red](Loading Time: '+loadtime+')[/COLOR]'+' [COLOR blue]'+name.upper()+'[/COLOR]',name.lower().strip()+'x1x8x'+mediaID,462,art+'/hosts/'+name.lower()+'.png',art+'/hosts/'+name.lower()+'.png')
コード例 #4
0
ファイル: dpstreaming.py プロジェクト: alejusar/starthere
def LINKLIST2(mname,url):
    if selfAddon.getSetting("hide-download-instructions") != "true": main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    match=re.compile('href="(.+?)" target="_blank">(.+?)</a>',re.DOTALL).findall(url)
    for url,host in match:
        if main.supportedHost(host):
            mname=main.removeColoredText(mname)
            main.addDown2(mname+' [COLOR blue]'+host.upper()+' [/COLOR]',url,314,art+'/hosts/'+host.lower()+".png",art+'/hosts/'+host.lower()+".png") 
コード例 #5
0
def LINKSP2(mname,url):
    link=main.OPENURL(url)
    link=main.unescapes(link)
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    
    match0=re.compile('title="[^"]+?">([^"]+?)</a>.+?</p><ul>(.+?)</ul>').findall(link)
    if not match0:
        match0=re.compile('<h4>(.+?)</h4>(.+?)</ul>').findall(link)
        if not match0:
            match0=re.compile('<p><img src=".+?" alt="([^"]+?)" /></p>.+?<ul>(.+?)</ul>').findall(link)
    for mname, links in reversed(match0):
        match1=re.compile('<li><a href="([^"]+?)"[^>]*?><img [^>]*?alt="([^"]+?)"[^>]*?></a></li>').findall(links)
        match= match1 + re.compile('<li><a href="([^"]+?)"[^>]*?>([^>]+?)</a></li>').findall(links)
        filename = False
        for murl, name in match:
            fn = re.search('/([^/]+?\.(mkv|avi|mp4))(\.html)?$',murl)
            if fn:
                filename = fn.group(1)
                break
        for murl, name in match:
            name = name[0].upper() + name[1:]
            if main.supportedHost(name):
                thumb=name.lower()
#                 if re.search('billionuploads',murl) and filename: murl += '#@#' + filename
                main.addDown2(main.CleanTitle(mname)+' [COLOR blue]'+name+'[/COLOR]',murl,209,art+'/hosts/'+thumb+".png",art+'/hosts/'+thumb+".png")
コード例 #6
0
ファイル: couchtuner.py プロジェクト: markheggan/Kasiks-Repo
def resolveURL(name,url):
    main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    html = main.OPENURL(url)
    html = main.unescapes(html).replace('IFRAME SRC','iframe src')
    match = re.findall('<iframe.+?src="([^"]*?)"',html)
    for url in match:
     main.addDown2(name.strip(),str(url),2,'.png','.png')
コード例 #7
0
ファイル: movieplaylist.py プロジェクト: kragen4/MashUp
def subLink(mname,suburl):
        match=re.compile('<sublink>(.+?)</sublink>').findall(suburl)
        for url in match:
                match6=re.compile('http://(.+?)/.+?').findall(url)
                for url2 in match6:
                        host = url2.replace('www.','').replace('.in','').replace('.net','').replace('.com','').replace('.to','').replace('.org','').replace('.ch','')
                        main.addDown2(mname+' [COLOR blue]'+host.upper()+'[/COLOR]',url,237,art+'/hosts/'+host.lower()+'.png',art+'/hosts/'+host.lower()+'.png')
コード例 #8
0
ファイル: dpstreaming.py プロジェクト: noba3/KoTos
def LINKLIST(mname, url):
    link = main.OPENURL2(url)
    link = link.replace('<iframe src="http://ads.affbuzzads.com', '')
    link = main.unescapes(link)
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink(
            "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
            '', '')
    match = re.compile('<iframe src="(.+?)" frameborder',
                       re.DOTALL).findall(link)
    for url in match:
        hostn = re.compile("http://(.+?)/.+?").findall(url)
        for hname in hostn:
            host = hname.replace('www.', '').replace('embed.', '').replace(
                '.es', '').replace('.in', '').replace('.sx', '').replace(
                    '.net', '').replace('.com', '').replace('.to', '').replace(
                        '.org', '').replace('.ch',
                                            '').replace('.eu',
                                                        '').replace('.ES', '')
            host = host.split('.')[0]
        if main.supportedHost(host):
            mname = main.removeColoredText(mname)
            main.addDown2(mname + ' [COLOR blue]' + host.upper() + ' [/COLOR]',
                          url, 314, art + '/hosts/' + host.lower() + ".png",
                          art + '/hosts/' + host.lower() + ".png")
コード例 #9
0
def LISTHOST(mname,murl,thumb):
    epi = re.findall('\ss(\d+)e(\d+)\s',mname + " ",re.I)
    for s,e in epi:
        pass
    if e[0:1]=='0':
        epis=e[1:]
    else:
        epis=e
    CheckNextEpi= int(epis)+1
    if(len(str(CheckNextEpi))==1): CheckNextEpi = "0" + str(CheckNextEpi)
    CheckNextEpi ="S" + str(s) + "E" + str(CheckNextEpi)
    CurrentEpi = re.search('(?i)(s\d+e\d+)',mname)
    link=main.OPENURL(murl)
    link=link.replace('\r','').replace('\n','').replace('\t','')
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    if CheckNextEpi in link:
        links = re.search('<td class="mnllinklist" align="right"><div class="right">'+CurrentEpi.group(1)+'.+?</div>(.+?)<div class="right">'+CheckNextEpi+'.+?</div>', link)
    else:
        links = re.search('<td class="mnllinklist" align="right"><div class="right">'+CurrentEpi.group(1)+'.+?</div>(.+?)<!-- End of the page footer -->', link)
    if links:
        links = links.group(1)
        match=re.compile('''<a onclick='.+?href="([^"]+?)" target=".+?"><div>.+?</div><span>Loading Time: <span class='.+?'>([^<]+?)</span><br/>Host:(.+?)<br/>''', re.DOTALL).findall(links)
        for url, loadtime, name in match:
            domain=name    
            name=name.replace(' ','')
            if name[0:1]=='.':
                name=name[1:]
            name=name.split('.')[0]
            if main.supportedHost(name.strip().lower()):
                try:mediaID=url.split('?id=')[1]
                except:mediaID=url.split('http://')[1].split('/')[1]
                main.addDown2(mname+' [COLOR red](Loading Time: '+loadtime+')[/COLOR]'+' [COLOR blue]'+name.upper()+'[/COLOR]',name.lower().strip()+'x1x8x'+mediaID,462,art+'/hosts/'+name.lower()+'.png',art+'/hosts/'+name.lower()+'.png')
コード例 #10
0
def LINKLIST(mname, url):
    link = main.OPENURL(url)
    link = main.unescapes(link)
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink(
            "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
            '', '')
    match = re.compile(
        '<span class="(.+?)">.+?</span></td><td class="tdcalidad">(.+?)</td><td class=".+?<img src=".+?" alt="(.+?)" />.+?</td>.+?title=".+?" href="(.+?)">',
        re.DOTALL).findall(link)
    for lang, qua, host, url in match:
        if 'flag flag_0' in lang:
            lang = ' [COLOR red]ESP[/COLOR]'
        if 'flag flag_1' in lang:
            lang = ' [COLOR yellow]LAT[/COLOR]'
        if 'flag flag_2' in lang:
            lang = ' [COLOR purple]ENG[/COLOR]'
        if 'flag flag_3' in lang:
            lang = ' [COLOR green]SUB[/COLOR]'
        if main.supportedHost(host):
            mname = main.removeColoredText(mname)
            main.addDown2(
                mname + ' [COLOR blue]' + host.upper() + ' [/COLOR]' + lang +
                ' [COLOR aqua]' + qua + '[/COLOR]', url, 67,
                art + '/hosts/' + host.lower() + ".png",
                art + '/hosts/' + host.lower() + ".png")
コード例 #11
0
def LINKLIST(mname, url):
    link = main.OPENURL(url)
    link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(
        '<iframe src="//www.facebook.com/plugins/likebox.php',
        '').replace('<iframe src="http://creative.rev2pub.com', '')
    link = main.unescapes(link)
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink(
            "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
            '', '')
    match = re.compile('<center><iframe.+?src="(.+?)".+?',
                       re.DOTALL | re.IGNORECASE).findall(link)
    #main.ErrorReport(match)
    for url in match:
        hostn = re.compile("http://(.+?)/.+?").findall(url)
        for hname in hostn:
            host = hname.replace('www.', '').replace('embed.', '').replace(
                '.es', '').replace('.in', '').replace('.sx', '').replace(
                    '.net', '').replace('.com', '').replace('.to', '').replace(
                        '.org', '').replace('.ch',
                                            '').replace('.eu',
                                                        '').replace('.ES', '')
            host = host.split('.')[0]
        if main.supportedHost(host):
            mname = main.removeColoredText(mname)
            main.addDown2(mname + ' [COLOR blue]' + host.upper() + ' [/COLOR]',
                          url, 797, art + '/hosts/' + host.lower() + ".png",
                          art + '/hosts/' + host.lower() + ".png")
コード例 #12
0
def LISTEPISODE(mname, url):
    link = main.OPENURL(url)
    link = link.replace('\r', '').replace('\n', '').replace('\t', '')
    link = main.unescapes(link)
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink(
            "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
            '', '')
    match = re.compile(
        '<dd><a href="([^<]+)" class="zoombox.+?" title="([^<]+)">',
        re.DOTALL).findall(link)
    for url, name in match:
        hostn = re.compile("http://(.+?)/.+?").findall(url)
        for hname in hostn:
            host = hname.replace('www.', '').replace('embed.', '').replace(
                '.es', '').replace('.in', '').replace('.sx', '').replace(
                    '.net', '').replace('.com', '').replace('.to', '').replace(
                        '.org', '').replace('.ch',
                                            '').replace('.eu',
                                                        '').replace('.ES', '')
            host = host.split('.')[0]
        if main.supportedHost(host):
            mname = main.removeColoredText(mname)
            main.addDown2(name + ' [COLOR blue]' + host.upper() + ' [/COLOR]',
                          url, 797, art + '/hosts/' + host.lower() + ".png",
                          art + '/hosts/' + host.lower() + ".png")
コード例 #13
0
def LINKLISTSS(mname, url):
    link = main.OPENURL(url)
    link = link.replace('\r', '').replace('\n', '').replace('\t', '')
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink(
            "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
            '', '')
    match = re.compile('<p><!--baslik:.+?--><br /><IFRAME SRC="(.+?)"',
                       re.I).findall(link)
    if match:
        host = re.compile("http://(.+?)/.+?").findall(match[0])
        host = host[0].replace('www.', '')
        host = host.split('.')[0]
        if main.supportedHost(host):
            main.addDown2(mname + ' [COLOR blue]' + host.upper() + ' [/COLOR]',
                          match[0], 327,
                          art + '/hosts/' + host.lower() + ".png",
                          art + '/hosts/' + host.lower() + ".png")
    match = re.compile('<a href="([^<]+)"><span>(.+?)</span></a>',
                       re.DOTALL).findall(link)
    for url, host in match:
        if main.supportedHost(host):
            main.addDown2(mname + ' [COLOR blue]' + host.upper() + ' [/COLOR]',
                          url, 327, art + '/hosts/' + host.lower() + ".png",
                          art + '/hosts/' + host.lower() + ".png")
コード例 #14
0
ファイル: tvrelease.py プロジェクト: noba3/KoTos
def LISTHOSTERS(name, url):
    html = GETHTML(url)
    if html == None: return
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink(
            "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
            '', '')
    r = re.findall(r'class="td_cols"><a target=\'_blank\'.+?href=\'(.+?)\'>',
                   html, re.M | re.DOTALL)
    try:
        t = re.findall(r'rel="nofollow">((?!.*\.rar).*)</a>', html, re.I)
        r = r + t
    except:
        pass
    if len(r) == 0:
        addon.show_ok_dialog([
            'No Playable Streams Found,',
            'It Might Be That They Are Still Being Uploaded,',
            'Or They Are Unstreamable Archive Files'
        ], 'MashUP: TV-Release')
        xbmcplugin.endOfDirectory(int(sys.argv[1]), False, False)
        return
    from urlparse import urlparse
    for url in r:
        url = url.replace("180upload.nl", "180upload.com")
        host = urlparse(url).hostname.replace('www.', '').partition('.')[0]
        if main.supportedHost(host):
            main.addDown2(
                name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]",
                url, 1005, art + '/hosts/' + host + '.png',
                art + '/hosts/' + host + '.png')
コード例 #15
0
ファイル: icefilms.py プロジェクト: noba3/KoTos
def LISTLINKS(mname, murl):
    mname = re.sub('\[COLOR red\].*?\[/COLOR\]', '', mname).strip()
    url = '/membersonly/components/com_iceplayer/video.php?h=331&w=719&vid='
    id = re.compile('v=(\d+)').findall(murl)[0]
    url += id + '&img='
    content = main.OPENURL(IceURL + url, verbose=False)
    source_args = {}
    source_args['sec'] = re.search('f\.lastChild\.value="([^"]+?)",a',
                                   content).group(1)
    source_args['t'] = re.search('"&t=([^"]+)",', content).group(1)
    sec = re.search('f\.lastChild\.value="([^"]+?)",a', content).group(1)
    t = re.search('"&t=([^"]+)",', content).group(1)
    for quality, links in re.findall(
            '<div class=ripdiv><b>([^<]+?)</b><p>(.+?)<p></div>', content):
        if 'DVD' in quality: quality = 'SD'
        elif 'HD' in quality: quality = 'HD'
        for id, text in re.findall(
                '''<a[^>]+?go\(([^\)]+?)\)'>Source #\d+: (.+?)</a>''', links):

            source_params = source_args
            source_params['id'] = id
            s_params = '<t>' + t + '</t><sec>' + sec + '</sec><id>' + id + '</id>'
            host = re.sub('<.*?>', '', text, re.I | re.DOTALL).strip()
            #host=GetHostsName(source_params)
            thumb = host.lower()
            main.addDown2(
                mname + ' [COLOR red]' + quality + '[/COLOR]' +
                ' [COLOR blue]' + host.upper() + '[/COLOR]', s_params, 284,
                art + '/hosts/' + thumb + ".png",
                art + '/hosts/' + thumb + ".png")
コード例 #16
0
ファイル: tvrelease.py プロジェクト: the-one-/MashUp
def LISTHOSTERS(name,url):
    html = GETHTML(url)
    if html == None: return
    main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    r = re.findall(r'class="td_cols"><a target=\'_blank\'.+?href=\'(.+?)\'>',html, re.M|re.DOTALL)
    try:
        t = re.findall(r'rel="nofollow">((?!.*\.rar).*)</a>', html, re.I)
        r = r+t
    except:
        pass
    if len(r) == 0:
        addon.show_ok_dialog(['No Playable Streams Found,','It Might Be That They Are Still Being Uploaded,',
                              'Or They Are Unstreamable Archive Files'],'MashUP: TV-Release')
        return
    sources = []
    for url in r:
        media = urlresolver.HostedMediaFile(url=url)
        sources.append(media)
    sources = urlresolver.filter_source_list(sources)
    r = re.findall(r'\'url\': \'(.+?)\', \'host\': \'(.+?)\'', str(sources), re.M)
    for url, host in r:
        r = re.findall(r'(.+?)\.',host)
        if 'www.real-debrid.com' in host:
            host = re.findall(r'//(.+?)/', url)
            host = host[0].replace('www.','')
            host = host.rpartition('.')
            host = host[0]
        else:
            host = r[0]
        main.addDown2(name+"[COLOR blue] :"+host.upper()+"[/COLOR]",url,1005,art+'/hosts/'+host+'.png',art+'/hosts/'+host+'.png')
コード例 #17
0
def ListSceneLogLinks(mname,url):
    html = main.OPENURL(url)
    html = main.unescapes(html)
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    paragraphs = re.compile('<p>.*?</p>',re.I|re.DOTALL).findall(html)
    itemsAdded = 0
    from urlparse import urlparse
    for paragraph in paragraphs:
        links = re.compile('<a[\s]*?href="(.*?)"',re.I|re.DOTALL).findall(paragraph)
        if len(links) == 1: # if more than 1 links per paragraph, its probably splitted file
            for url in links:
                if not re.search('rar',url,re.I):
                    host = urlparse(url).hostname.replace('www.','').partition('.')[0]
                    if main.supportedHost(host):
                        title = mname
                        quality = re.search('(?i)(720p|1080p|HDTV|PDTV|WEB DL|DVDRIP|WS DSR|DSR|BDRip|WEBRiP)',url,re.I)
                        if quality and not quality.group(1).lower() in mname.lower() :
                            title = re.sub('\[COLOR.*?\[/COLOR\]','',title).strip()
                            title += ' [COLOR red]'+quality.group(1).upper()+'[/COLOR]'
                        host = re.sub('^(https?://)?[^/]*?([^/^.]+?)\.\w+?/.*','\\2',url).upper()
                        thumb = host.lower()
                        main.addDown2(title+' [COLOR blue]'+host+'[/COLOR]',url,658,art+'/hosts/'+thumb+".png",art+'/hosts/'+thumb+".png")
                        itemsAdded += 1
    if not itemsAdded:
        xbmcplugin.endOfDirectory(int(sys.argv[1]), False, False)
        xbmc.executebuiltin("XBMC.Notification(Sorry,No sources found!,3000)")
コード例 #18
0
def LINKSP2(mname, url):
    link = main.OPENURL(url)
    link = main.unescapes(link)
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink(
            "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
            '', '')
    match0 = re.compile('<h4>(.+?)</h4>(.+?)</ul>').findall(link)
    if not match0:
        match0 = re.compile(
            'title="[^"]+?">([^"]+?)</a>.+?</p><ul>(.+?)</ul>').findall(link)
    for mname, links in reversed(match0):
        match1 = re.compile(
            '<li><a href="([^"]+?)"[^>]*?><img [^>]*?alt="([^"]+?)"[^>]*?></a></li>'
        ).findall(links)
        match = match1 + re.compile(
            '<li><a href="([^"]+?)"[^>]*?>([^>]+?)</a></li>').findall(links)
        filename = False
        for murl, name in match:
            fn = re.search('/([^/]+?\.(mkv|avi|mp4))(\.html)?$', murl)
            if fn:
                filename = fn.group(1)
                break
        for murl, name in match:
            name = name[0].upper() + name[1:]
            if main.supportedHost(name):
                thumb = name.lower()
                #                 if re.search('billionuploads',murl) and filename: murl += '#@#' + filename
                main.addDown2(mname + ' [COLOR blue]' + name + '[/COLOR]',
                              murl, 209, art + '/hosts/' + thumb + ".png",
                              art + '/hosts/' + thumb + ".png")
コード例 #19
0
def LINKSP4(mname,murl):
    html = main.OPENURL(murl)
    html = html.replace('href="http://oneclickmoviez.com/dws/MEGA','')
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    match=re.compile('<a rel="nofollow" href="([^"]+?)"[^>]*?>([^<]+?)</a>\s*?\(Single\)<',re.DOTALL).findall(html)
    if match:
        urls = []
        exlude = "(BAYFILES|RYUSHARE)"
        for url, host in match:
            if not re.search(exlude,host):
                urls.append(url)
        if urls:
            contents = main.batchOPENURL(urls, merge=False)
        i = 0
        for url, host in match:
            if not re.search('(?i)'+exlude,host):
                thumb = host.lower()
                thumb = thumb.replace('www.','').replace('.in','').replace('.net','').replace('.com','').replace('.to','').replace('.org','').replace('.ch','')
                vlink = getlink(contents[i])
                i += 1
                archive = re.compile('rar').findall(vlink)
                if not archive:
                    import urlresolver
                    hosted_media = urlresolver.HostedMediaFile(url=vlink, title=host)
                    match2=re.compile("{'url': '(.+?)', 'host': '(.+?)', 'media_id': '.+?'}").findall(str(hosted_media))
                    for murl,name in match2:
                            main.addDown2(mname+' [COLOR blue]'+host+'[/COLOR]',murl,211,art+'/hosts/'+thumb+".png",art+'/hosts/'+thumb+".png")
コード例 #20
0
ファイル: iwatchonline.py プロジェクト: TerrorKeed/gitupdate1
def iWatchLINK(mname, url):
    link = main.OPENURL(url)
    movie_content = main.unescapes(link)
    movie_content = re.sub("\\\"", "\"", movie_content)
    movie_content = movie_content.replace('\'', '')
    from resources.universal import _common as univ_common
    link2 = univ_common.str_conv(decode(movie_content))
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink(
            "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
            '', '')
    links = re.search('<tbody>(.+?)</tbody>', link2)

    if links:
        links = links.group(1)
        print links

        match = re.compile(
            '<a href="([^"]+?)" target="_blank" rel="nofollow"><img src=".+?> ([^<]+?)</td>  <td><img src=".+?</td>  <td>.+?</td>  <td>([^<]+?)</td>',
            re.DOTALL).findall(links)
        for url, name, qua in match:
            name = name.replace(' ', '')
            if name[0:1] == '.':
                name = name[1:]
            name = name.split('.')[0]
            if main.supportedHost(name.lower()):
                main.addDown2(
                    mname + ' [COLOR red](' + qua + ')[/COLOR]' +
                    ' [COLOR blue]' + name.upper() + '[/COLOR]', url, 649,
                    art + '/hosts/' + name.lower() + '.png',
                    art + '/hosts/' + name.lower() + '.png')
コード例 #21
0
ファイル: oneclickmoviez.py プロジェクト: the-one-/MashUp
def LINKSP4(mname, murl):
    xbmc.executebuiltin(
        "XBMC.Notification(Please Wait!,Collecting Hosts,3000)")
    link = main.OPENURL(murl)
    ok = True
    link = link.replace('href="http://oneclickmoviez.com/dws/MEGA', '')
    main.addLink(
        "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
        '', '')
    match = re.compile(
        '<a href="(.+?)" target="_blank">(.+?)</a>.+?</p>').findall(link)
    for url, host in match:
        thumb = host.lower()
        thumb = thumb.replace('www.', '').replace('.in', '').replace(
            '.net', '').replace('.com',
                                '').replace('.to',
                                            '').replace('.org',
                                                        '').replace('.ch', '')
        vlink = getlink(url)
        match2 = re.compile('rar').findall(vlink)
        if len(match2) == 0:
            hosted_media = urlresolver.HostedMediaFile(url=vlink, title=host)
            match2 = re.compile(
                "{'url': '(.+?)', 'host': '(.+?)', 'media_id': '.+?'}"
            ).findall(str(hosted_media))
            for murl, name in match2:
                main.addDown2(mname + ' [COLOR blue]' + host + '[/COLOR]',
                              murl, 211, art + '/hosts/' + thumb + ".png",
                              art + '/hosts/' + thumb + ".png")
コード例 #22
0
def LINKLIST2(mname,url):
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    match=re.compile('href="(.+?)" target="_blank">(.+?)</a>',re.DOTALL).findall(url)
    for url,host in match:
        if main.supportedHost(host):
            mname=main.removeColoredText(mname)
            main.addDown2(mname+' [COLOR blue]'+host.upper()+' [/COLOR]',url,789,art+'/hosts/'+host.lower()+".png",art+'/hosts/'+host.lower()+".png") 
コード例 #23
0
ファイル: couchtuner.py プロジェクト: rjt2/Kasiks-Repo
def LINKZ(name,url):
    main.addLink("[COLOR orange]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    link=main.OPENURL(url)
    link=link.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','').replace('IFRAME SRC','iframe src')
    match=re.compile('<b>([^"]*?)</b></span><br /><iframe.+?src="([^"]*?)"').findall(link)
    for host,url in match:
        host=host.replace('AllMyV','allmyvideos').replace('VSpot','vidspot').replace('TheVid','thevideo').replace('Vodlo','vodlocker').replace('Vidbul','vidbull').replace('IShar','ishared').replace('allmyvideosid','allmyvideos')
        host=host.replace('FHoot','filehoot').replace('VidtO','vidto').replace('VK-Mob','vk')
        main.addDown2(name.strip()+" [COLOR blue]"+host.upper()+"[/COLOR]",str(url),2,art+'/hosts/'+host+'.png',art+'/hosts/'+host+'.png')
コード例 #24
0
ファイル: couchtuner.py プロジェクト: ArchUser/Kasiks-Repo
def LINK2(name,url):      
        html = main.OPENURL(url)
        html=html.replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','').replace('IFRAME SRC','iframe src').replace("",'').replace('\xe2\x80\x99',"'").replace('\xe2\x80\x93','-')
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
        r = re.compile(r'<b>([^"]*)</b></span><br /><iframe src="([^"]*)"',re.M|re.DOTALL).findall(html)
        for host,url in r:
            from urlparse import urlparse    
            host = urlparse(url).hostname.replace('www.','').partition('.')[0]
            if main.supportedHost(host):
             main.addDown2(name.strip()+" [COLOR blue]"+host.upper()+"[/COLOR]",url,2,art+'/hosts/'+host+'.png',art+'/hosts/'+host+'.png')
コード例 #25
0
ファイル: fxcine.py プロジェクト: alejusar/starthere
def LINKLIST(mname,url):
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    match=re.compile("""><img alt="([^<]+)" src="[^<]+" onClick="cargar.?'#player','(.+?)'""",re.DOTALL).findall(link)
    for host,url in match:
        host=host.replace(' Java','').replace('ShockShare','SockShare').replace('.to','')
        print host
        if main.supportedHost(host):
            mname=main.removeColoredText(mname)
            main.addDown2(mname+' [COLOR blue]'+host.upper()+'[/COLOR]','http://www.estrenosvk.com/player/'+url,310,art+'/hosts/'+host.lower()+".png",art+'/hosts/'+host.lower()+".png")
コード例 #26
0
def LINKSP2(mname,url):
        link=main.OPENURL(url)
        link=main.unescapes(link)
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
        match=re.compile('<li><a href="h(.+?)">(.+?)</a></li>').findall(link)
        for murl, name in match:
                thumb=name.lower()
                murl='h'+murl
                hosted_media = urlresolver.HostedMediaFile(url=murl, title=name)
                match2=re.compile("{'url': '(.+?)', 'host': '(.+?)', 'media_id': '.+?'}").findall(str(hosted_media))
                for murl,host in match2:
                        main.addDown2(mname+' [COLOR blue]'+name+'[/COLOR]',murl,209,art+'/hosts/'+thumb+".png",art+'/hosts/'+thumb+".png")
コード例 #27
0
ファイル: rlsmix.py プロジェクト: Pirata-Repository/Pirata
def ListDirectDownloadTVLinks(mname,url):
    ok=True
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    match=re.compile('{"url":"([^"]+?)","hostname":"([^"]+?)"}').findall(url)
    for url,host in match:
        thumb=host.lower()
        urlExceptions = re.compile('rar').findall(url)
#         hostExceptions = re.compile('fileom|oteupload').findall(host)
#         if not urlExceptions and not hostExceptions:
        if not urlExceptions and main.supportedHost(host):
            main.addDown2(mname+' [COLOR blue]'+host.upper()+'[/COLOR]',url,210,art+"/hosts/"+thumb+".png",art+"/hosts/"+thumb+".png")     
コード例 #28
0
ファイル: newmyvideolinks.py プロジェクト: the-one-/MashUp
def LINKSP2(mname,url):
        link=main.OPENURL(url)
        link=main.unescapes(link)
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
        match=re.compile('<li><a href="h(.+?)">(.+?)</a></li>').findall(link)
        for murl, name in match:
                thumb=name.lower()
                murl='h'+murl
                hosted_media = urlresolver.HostedMediaFile(url=murl, title=name)
                match2=re.compile("{'url': '(.+?)', 'host': '(.+?)', 'media_id': '.+?'}").findall(str(hosted_media))
                for murl,host in match2:
                        main.addDown2(mname+' [COLOR blue]'+name+'[/COLOR]',murl,209,art+'/hosts/'+thumb+".png",art+'/hosts/'+thumb+".png")
コード例 #29
0
def iWatchLINK(mname,url):      
        xbmc.executebuiltin("XBMC.Notification(Please Wait!,Collecting Hosts,1500)")
        link=main.OPENURL(url)
        link=main.unescapes(link)
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
        match=re.compile('<td class="sideleft"><a href="([^<]+)" target=".+?" rel=".+?"><img src=".+?" alt="" />(.+?)</a>').findall(link)
        for url, name in match:
            name=name.replace(' ','')
            if name[0:1]=='.':
                name=name[1:]
            name=name.split('.')[0]
            main.addDown2(mname+' [COLOR red]'+name.upper()+'[/COLOR]',url,649,art+'/hosts/'+name.lower()+'.png',art+'/hosts/'+name.lower()+'.png')
コード例 #30
0
def LINKTV4(mname, url):
    xbmc.executebuiltin(
        "XBMC.Notification(Please Wait!,Collecting Hosts,3000)")
    link = main.OPENURL(url)
    link = link.replace('TV Rage', '').replace('Homepage', '').replace(
        'href="http://www.tvrage.com',
        '').replace('href="http://www.cbs.com', '').replace(
            'Torrent Search', '').replace('Season Download', '').replace(
                'href="http://uppix.net',
                '').replace('href="http://www.torrentz.com',
                            '').replace('href="http://directdownload.tv', '')
    ok = True
    main.addLink(
        "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
        '', '')
    main.addLink(
        '[COLOR red]The Last uploaded & turbobit Link could be HD[/COLOR]', '',
        art + '/tvb.png')
    match = re.compile('<a href="(.+?)" target="_blank">(.+?)</a>').findall(
        link)
    for url, host in match:
        thumb = host.lower()
        match5 = re.compile('Part').findall(host)
        if len(match5) > 0:
            match6 = re.compile('http://(.+?)/.+?').findall(url)
            for url2 in match6:
                host2 = url2.replace('www.', '').replace('.in', '').replace(
                    '.net',
                    '').replace('.com',
                                '').replace('.to',
                                            '').replace('.org',
                                                        '').replace('.ch', '')
            thumb = host2.lower()
        match3 = re.compile('720p').findall(url)
        match4 = re.compile('mp4').findall(url)

        if len(match3) > 0:
            host = host + ' [COLOR red]HD[/COLOR]'
        elif len(match4) > 0:
            host = host + ' [COLOR green]SD MP4[/COLOR]'
        else:
            host = host + ' [COLOR blue]SD[/COLOR]'
        match2 = re.compile('rar').findall(url)
        if len(match2) == 0:
            hosted_media = urlresolver.HostedMediaFile(url=url, title=host)
            match2 = re.compile(
                "{'url': '(.+?)', 'host': '(.+?)', 'media_id': '.+?'}"
            ).findall(str(hosted_media))
            for murl, name in match2:
                main.addDown2(mname + ' [COLOR blue]' + host + '[/COLOR]',
                              murl, 210, art + "/hosts/" + thumb + ".png",
                              art + "/hosts/" + thumb + ".png")
コード例 #31
0
ファイル: rlsmix.py プロジェクト: kubakul/MashUp
def LINKTV4(mname,url):
        ok=True
        if selfAddon.getSetting("hide-download-instructions") != "true":
            main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
        match=re.compile('{"url":"(.+?)","hostname":"(.+?)"}').findall(url)
        for url,host in match:
                thumb=host.lower()
                match2=re.compile('rar').findall(url)
                if len(match2)==0:
                        hosted_media = urlresolver.HostedMediaFile(url=url, title=host)
                        match2=re.compile("{'url': '(.+?)', 'host': '(.+?)', 'media_id': '.+?'}").findall(str(hosted_media))
                        for murl,name in match2:
                                main.addDown2(mname+' [COLOR blue]'+host.upper()+'[/COLOR] [COLOR red]HD[/COLOR]',murl,210,art+"/hosts/"+thumb+".png",art+"/hosts/"+thumb+".png")
コード例 #32
0
ファイル: rlsmix.py プロジェクト: kragen4/MashUp
def LINKTV4(mname,url):
        xbmc.executebuiltin("XBMC.Notification(Please Wait!,Collecting Hosts,3000)")
        ok=True
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
        match=re.compile('<a href="(.+?)" ><img title="Download on (.+?)" src=".+?">').findall(url)
        for url, host in match:
                thumb=host.lower()
                match2=re.compile('rar').findall(url)
                if len(match2)==0:
                        hosted_media = urlresolver.HostedMediaFile(url=url, title=host)
                        match2=re.compile("{'url': '(.+?)', 'host': '(.+?)', 'media_id': '.+?'}").findall(str(hosted_media))
                        for murl,name in match2:
                                main.addDown2(mname+' [COLOR blue]'+host+'[/COLOR] [COLOR red]HD[/COLOR]',murl,210,art+"/hosts/"+thumb+".png",art+"/hosts/"+thumb+".png")
コード例 #33
0
ファイル: dpstreaming.py プロジェクト: alejusar/starthere
def LINKLIST(mname,url):
    link=main.OPENURL2(url)
    link=link.replace('<iframe src="http://ads.affbuzzads.com','')
    link=main.unescapes(link)
    if selfAddon.getSetting("hide-download-instructions") != "true": main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    match=re.compile('<iframe src="(.+?)" frameborder',re.DOTALL).findall(link)
    for url in match:
        hostn=re.compile("http://(.+?)/.+?").findall(url)
        for hname in hostn:
            host=hname.replace('www.','').replace('embed.','').replace('.es','').replace('.in','').replace('.sx','').replace('.net','').replace('.com','').replace('.to','').replace('.org','').replace('.ch','').replace('.eu','').replace('.ES','')
            host=host.split('.')[0]
        if main.supportedHost(host):
            mname=main.removeColoredText(mname)
            main.addDown2(mname+' [COLOR blue]'+host.upper()+' [/COLOR]',url,314,art+'/hosts/'+host.lower()+".png",art+'/hosts/'+host.lower()+".png") 
コード例 #34
0
def subLink(mname, suburl):
    match = re.compile('<sublink>(.+?)</sublink>').findall(suburl)
    for url in match:
        match6 = re.compile('http://(.+?)/.+?').findall(url)
        for url2 in match6:
            host = url2.replace('www.', '').replace('.in', '').replace(
                '.net',
                '').replace('.com',
                            '').replace('.to',
                                        '').replace('.org',
                                                    '').replace('.ch', '')
            main.addDown2(mname + ' [COLOR blue]' + host.upper() + '[/COLOR]',
                          url, 237, art + '/hosts/' + host.lower() + '.png',
                          art + '/hosts/' + host.lower() + '.png')
コード例 #35
0
ファイル: tubeplus.py プロジェクト: kragen4/MashUp
def LINK(mname, murl):
    xbmc.executebuiltin("XBMC.Notification(Please Wait!,Collecting Hosts,1500)")
    if "http://www.tubeplus.me/" not in murl:
        murl = BASE_URL + murl
    html = main.OPENURL(murl)
    main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]", "", "")
    r = re.compile(
        r'class="(o.+?)">.+?javascript:show\(\'(.+?)\'\,\'.+?\'\,\s\'(.+?)\'\)\;.+?<b>(.+?)said work', re.M | re.DOTALL
    ).findall(html)
    for status, url, hoster, said in r:
        percentage = said.replace("%", "")
        host = hoster
        hoster = (
            hoster.replace("www.", "")
            .replace(".in", "")
            .replace(".net", "")
            .replace(".com", "")
            .replace(".to", "")
            .replace(".org", "")
            .replace(".ch", "")
            .replace(".eu", "")
        )
        if int(percentage) in range(0, 25):
            title = (
                "[COLOR blue]" + hoster.upper() + "[/COLOR][COLOR red]           " + status + " " + said + "[/COLOR]"
            )
        if int(percentage) in range(25, 50):
            title = "[COLOR blue]" + hoster.upper() + "           " + status + " " + said + "[/COLOR]"
        if int(percentage) in range(50, 75):
            title = (
                "[COLOR blue]" + hoster.upper() + "[/COLOR][COLOR orange]           " + status + " " + said + "[/COLOR]"
            )
        if int(percentage) in range(75, 101):
            title = (
                "[COLOR blue]"
                + hoster.upper()
                + "[/COLOR][COLOR=FF67cc33]          "
                + status
                + " "
                + said
                + "[/COLOR]"
            )
        main.addDown2(
            mname + " " + title,
            "xoxv" + host + "xoxe" + url + "xoxc",
            1027,
            art + "/hosts/" + hoster.lower() + ".png",
            art + "/hosts/" + hoster.lower() + ".png",
        )
コード例 #36
0
ファイル: rlsmix.py プロジェクト: fsharath/MashUp
def ListDirectDownloadTVLinks(mname,url):
    ok=True
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    match=re.compile('{"url":"(.+?)","hostname":"(.+?)"}').findall(url)
#     import urlresolver
    for url,host in match:
        thumb=host.lower()
        urlExceptions = re.compile('rar').findall(url)
        hostExceptions = re.compile('fileom|oteupload').findall(host)
        if not urlExceptions and not hostExceptions:
#             hosted_media = urlresolver.HostedMediaFile(url=url, title=host)
#             match2=re.compile("{'url': '(.+?)', 'host': '(.+?)', 'media_id': '.+?'}").findall(str(hosted_media))
#             for murl,name in match2:
            main.addDown2(mname+' [COLOR blue]'+host.upper()+'[/COLOR]',url,210,art+"/hosts/"+thumb+".png",art+"/hosts/"+thumb+".png")     
コード例 #37
0
ファイル: fullstream2.py プロジェクト: Ladeiras/AutoUpdate
def LISTEPISODE(mname,url):
    link=main.OPENURL(url)
    link=link.replace('\r','').replace('\n','').replace('\t','')
    link=main.unescapes(link)
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    match=re.compile('<dd><a href="([^<]+)" class="zoombox.+?" title="([^<]+)">',re.DOTALL).findall(link)
    for url,name in match:
        hostn=re.compile("http://(.+?)/.+?").findall(url)
        for hname in hostn:
            host=hname.replace('www.','').replace('embed.','').replace('.es','').replace('.in','').replace('.sx','').replace('.net','').replace('.com','').replace('.to','').replace('.org','').replace('.ch','').replace('.eu','').replace('.ES','')
            host=host.split('.')[0]
        if main.supportedHost(host):
            mname=main.removeColoredText(mname)
            main.addDown2(name+' [COLOR blue]'+host.upper()+' [/COLOR]',url,797,art+'/hosts/'+host.lower()+".png",art+'/hosts/'+host.lower()+".png") 
コード例 #38
0
ファイル: rlsmix.py プロジェクト: HIGHWAY99/MashUp
def LINKTV4(mname,url):
        ok=True
        if selfAddon.getSetting("hide-download-instructions") != "true":
            main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
        match=re.compile('"(.+?)"').findall(url)
        for url in match:
                hname=re.compile("http.+?//(.+?)/.+?").findall(url)
                for host in hname:
                        host=host.replace('www.','').replace('.com','').replace('.es','').replace('.ws','').replace('.it','').replace('.net','').replace('.org','').replace('.info','')
                thumb=host.lower()
                match2=re.compile('rar').findall(url)
                if len(match2)==0:
                        hosted_media = urlresolver.HostedMediaFile(url=url, title=host)
                        match2=re.compile("{'url': '(.+?)', 'host': '(.+?)', 'media_id': '.+?'}").findall(str(hosted_media))
                        for murl,name in match2:
                                main.addDown2(mname+' [COLOR blue]'+host.upper()+'[/COLOR] [COLOR red]HD[/COLOR]',murl,210,art+"/hosts/"+thumb+".png",art+"/hosts/"+thumb+".png")
コード例 #39
0
ファイル: sokrostream.py プロジェクト: Ladeiras/AutoUpdate
def LINKLISTSS(mname,url):
    link=main.OPENURL(url)
    link=link.replace('\r','').replace('\n','').replace('\t','')
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    match=re.compile('<p><!--baslik:.+?--><br /><IFRAME SRC="(.+?)"',re.I).findall(link)
    if match:
        host=re.compile("http://(.+?)/.+?").findall(match[0])
        host=host[0].replace('www.','')
        host=host.split('.')[0]
        if main.supportedHost(host):
            main.addDown2(mname+' [COLOR blue]'+host.upper()+' [/COLOR]',match[0],327,art+'/hosts/'+host.lower()+".png",art+'/hosts/'+host.lower()+".png")
    match=re.compile('<a href="([^<]+)"><span>(.+?)</span></a>',re.DOTALL).findall(link)
    for url,host in match:
        if main.supportedHost(host):
            main.addDown2(mname+' [COLOR blue]'+host.upper()+' [/COLOR]',url,327,art+'/hosts/'+host.lower()+".png",art+'/hosts/'+host.lower()+".png") 
コード例 #40
0
ファイル: fullstream2.py プロジェクト: Ladeiras/AutoUpdate
def LINKLIST(mname,url):
    link=main.OPENURL(url)
    link=link.replace('\r','').replace('\n','').replace('\t','').replace('<iframe src="//www.facebook.com/plugins/likebox.php','').replace('<iframe src="http://creative.rev2pub.com','')
    link=main.unescapes(link)
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    match=re.compile('<center><iframe.+?src="(.+?)".+?',re.DOTALL | re.IGNORECASE).findall(link)
    #main.ErrorReport(match)
    for url in match:
        hostn=re.compile("http://(.+?)/.+?").findall(url)
        for hname in hostn:
            host=hname.replace('www.','').replace('embed.','').replace('.es','').replace('.in','').replace('.sx','').replace('.net','').replace('.com','').replace('.to','').replace('.org','').replace('.ch','').replace('.eu','').replace('.ES','')
            host=host.split('.')[0]
        if main.supportedHost(host):
            mname=main.removeColoredText(mname)
            main.addDown2(mname+' [COLOR blue]'+host.upper()+' [/COLOR]',url,797,art+'/hosts/'+host.lower()+".png",art+'/hosts/'+host.lower()+".png") 
コード例 #41
0
ファイル: fullstream2.py プロジェクト: himag1/AutoUpdate
def LINKLIST(mname,url):
    link=main.OPENURL(url)
    link=link.replace('\r','').replace('\n','').replace('\t','')
    link=main.unescapes(link)
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    match=re.compile('<iframe.+?src="(.+?)".+?',re.DOTALL | re.IGNORECASE).findall(link)
    #xbmc.executebuiltin("XBMC.Notification(Please Wait!,Resolving"+str(match)+" Link)")
    #xbmc.log(msg='-------------------'+str(match)+str(len(match)), level=xbmc.LOGDEBUG)
    for url in match:
        hostn=re.compile("http://(.+?)/.+?").findall(url)
        for hname in hostn:
            host=hname.replace('www.','').replace('embed.','').replace('.es','').replace('.in','').replace('.sx','').replace('.net','').replace('.com','').replace('.to','').replace('.org','').replace('.ch','').replace('.eu','').replace('.ES','')
            host=host.split('.')[0]
        #if main.supportedHost(host):
            mname=main.removeColoredText(mname)
            main.addDown2(mname+' [COLOR blue]'+host.upper()+' [/COLOR]',url,797,art+'/hosts/'+host.lower()+".png",art+'/hosts/'+host.lower()+".png") 
コード例 #42
0
ファイル: oneclickmoviez.py プロジェクト: the-one-/MashUp
def LINKSP4(mname,murl):
        xbmc.executebuiltin("XBMC.Notification(Please Wait!,Collecting Hosts,3000)")
        link=main.OPENURL(murl)
        ok=True
        link= link.replace('href="http://oneclickmoviez.com/dws/MEGA','')
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
        match=re.compile('<a href="(.+?)" target="_blank">(.+?)</a>.+?</p>').findall(link)
        for url, host in match:
                thumb=host.lower()
                thumb = thumb.replace('www.','').replace('.in','').replace('.net','').replace('.com','').replace('.to','').replace('.org','').replace('.ch','')
                vlink = getlink(url)
                match2=re.compile('rar').findall(vlink)
                if len(match2)==0:
                        hosted_media = urlresolver.HostedMediaFile(url=vlink, title=host)
                        match2=re.compile("{'url': '(.+?)', 'host': '(.+?)', 'media_id': '.+?'}").findall(str(hosted_media))
                        for murl,name in match2:
                                main.addDown2(mname+' [COLOR blue]'+host+'[/COLOR]',murl,211,art+'/hosts/'+thumb+".png",art+'/hosts/'+thumb+".png")
コード例 #43
0
ファイル: icefilms.py プロジェクト: philtimmes/addons
def LISTLINKS(mname,murl):
    mname = re.sub('\[COLOR red\].*?\[/COLOR\]','',mname).strip()
    url = '/membersonly/components/com_iceplayer/video.php?h=331&w=719&vid='
    id = re.compile('v=(\d+)').findall(murl)[0]
    url += id + '&img='
    content = main.OPENURL(IceURL+url, verbose=False)
    source_args = {}
    source_args['sec'] = re.search('f\.lastChild\.value="([^"]+?)",a', content).group(1)
    source_args['t'] = re.search('"&t=([^"]+)",', content).group(1)         
    for quality, links in re.findall('<div class=ripdiv><b>([^<]+?)</b><p>(.+?)<p></div>', content):
        if 'DVD' in quality: quality = 'SD'
        elif 'HD' in quality: quality = 'HD'
        for id, host in re.findall('<a[^>]+?go\(([^\)]+?)\)[^"]*?["\']Hosted by ([^"]+?)["\']', links): 
            source_params = source_args
            source_params['id'] = id
            thumb = host.lower()
            main.addDown2(mname+' [COLOR red]'+quality+'[/COLOR]'+' [COLOR blue]'+host+'[/COLOR]','ice'+urllib.quote(str(source_params)),284,art+'/hosts/'+thumb+".png",art+'/hosts/'+thumb+".png")
コード例 #44
0
def LINKLIST(mname,url):
    link=main.OPENURL(url)
    link=link.replace('\r','').replace('\n','').replace('\t','')
    link=main.unescapes(link)
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    match=re.compile('<iframe src="(.+?)"',re.DOTALL).findall(link)
    #xbmc.executebuiltin("XBMC.Notification(Please Wait!,Resolving"+str(match)+" Link)")
    #xbmc.log(msg='-------------------'+str(match)+str(len(match)), level=xbmc.LOGDEBUG)
    for url in match:
        hostn=re.compile("http://(.+?)/.+?").findall(url)
        for hname in hostn:
            host=hname.replace('www.','').replace('embed.','').replace('.es','').replace('.in','').replace('.sx','').replace('.net','').replace('.com','').replace('.to','').replace('.org','').replace('.ch','').replace('.eu','').replace('.ES','')
            host=host.split('.')[0]
        #if main.supportedHost(host):
            mname=main.removeColoredText(mname)
            main.addDown2(mname+' [COLOR blue]'+host.upper()+' [/COLOR]',url,789,art+'/hosts/'+host.lower()+".png",art+'/hosts/'+host.lower()+".png") 
コード例 #45
0
def LINKLIST(mname,url):
    link=main.OPENURL(url)
    link=main.unescapes(link)
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
    match=re.compile('<span class="(.+?)">.+?</span></td><td class="tdcalidad">(.+?)</td><td class=".+?<img src=".+?" alt="(.+?)" />.+?</td>.+?title=".+?" href="(.+?)">',re.DOTALL).findall(link)
    for lang,qua,host,url in match:
        if 'flag flag_0' in lang:
            lang= ' [COLOR red]ESP[/COLOR]'
        if 'flag flag_1' in lang:
            lang= ' [COLOR yellow]LAT[/COLOR]'
        if 'flag flag_2' in lang:
            lang= ' [COLOR purple]ENG[/COLOR]'
        if 'flag flag_3' in lang:
            lang= ' [COLOR green]SUB[/COLOR]'
        if main.supportedHost(host):
            mname=main.removeColoredText(mname)
            main.addDown2(mname+' [COLOR blue]'+host.upper()+' [/COLOR]'+ lang+' [COLOR aqua]'+qua+'[/COLOR]',url,67,art+'/hosts/'+host.lower()+".png",art+'/hosts/'+host.lower()+".png")    
コード例 #46
0
def LINKSP4(mname, murl):
    html = main.OPENURL(murl)
    html = html.replace('href="http://oneclickmoviez.com/dws/MEGA', '')
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink(
            "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
            '', '')
    match = re.compile(
        '<a rel="nofollow" href="([^"]+?)"[^>]*?>([^<]+?)</a>\s*?\(Single\)<',
        re.DOTALL).findall(html)
    if match:
        urls = []
        exlude = "(BAYFILES|RYUSHARE)"
        for url, host in match:
            if not re.search(exlude, host):
                urls.append(url)
        if urls:
            contents = main.batchOPENURL(urls, merge=False)
        i = 0
        for url, host in match:
            if not re.search('(?i)' + exlude, host):
                thumb = host.lower()
                thumb = thumb.replace('www.', '').replace('.in', '').replace(
                    '.net',
                    '').replace('.com',
                                '').replace('.to',
                                            '').replace('.org',
                                                        '').replace('.ch', '')
                vlink = getlink(contents[i])
                i += 1
                archive = re.compile('rar').findall(vlink)
                if not archive:
                    import urlresolver
                    hosted_media = urlresolver.HostedMediaFile(url=vlink,
                                                               title=host)
                    match2 = re.compile(
                        "{'url': '(.+?)', 'host': '(.+?)', 'media_id': '.+?'}"
                    ).findall(str(hosted_media))
                    for murl, name in match2:
                        main.addDown2(
                            mname + ' [COLOR blue]' + host + '[/COLOR]', murl,
                            211, art + '/hosts/' + thumb + ".png",
                            art + '/hosts/' + thumb + ".png")
コード例 #47
0
def LINKLIST(mname, url):
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink(
            "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
            '', '')
    match = re.compile(
        """><img alt="([^<]+)" src="[^<]+" onClick="cargar.?'#player','(.+?)'""",
        re.DOTALL).findall(link)
    for host, url in match:
        host = host.replace(' Java',
                            '').replace('ShockShare',
                                        'SockShare').replace('.to', '')
        print host
        if main.supportedHost(host):
            mname = main.removeColoredText(mname)
            main.addDown2(mname + ' [COLOR blue]' + host.upper() + '[/COLOR]',
                          'http://www.estrenosvk.com/player/' + url, 310,
                          art + '/hosts/' + host.lower() + ".png",
                          art + '/hosts/' + host.lower() + ".png")
コード例 #48
0
ファイル: couchtuner.py プロジェクト: rjt2/Kasiks-Repo
def LINK2(name, url):
    html = main.OPENURL(url)
    html = html.replace('\r', '').replace('\n', '').replace('\t', '').replace(
        '&nbsp;',
        '').replace('IFRAME SRC', 'iframe src').replace("", '').replace(
            '\xe2\x80\x99', "'").replace('\xe2\x80\x93', '-')
    main.addLink(
        "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
        '', '')
    r = re.compile(r'<b>([^"]*)</b></span><br /><iframe src="([^"]*)"',
                   re.M | re.DOTALL).findall(html)
    for host, url in r:
        from urlparse import urlparse
        host = urlparse(url).hostname.replace('www.', '').partition('.')[0]
        if main.supportedHost(host):
            main.addDown2(
                name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]",
                url, 2, art + '/hosts/' + host + '.png',
                art + '/hosts/' + host + '.png')
コード例 #49
0
ファイル: newmyvideolinks.py プロジェクト: fsharath/MashUp
def LINKSP2(mname,url):
        link=main.OPENURL(url)
        link=main.unescapes(link)
        if selfAddon.getSetting("hide-download-instructions") != "true":
            main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
        match0=re.compile('<h4>(.+?)</h4>(.+?)</ul>').findall(link)
        import urlresolver
        for mname, links in reversed(match0):
            match=re.compile('<li><a href="h(.+?)">(.+?)</a></li>').findall(links)
            for murl, name in match:
                    thumb=name.lower()
                    murl='h'+murl
                    hosted_media = urlresolver.HostedMediaFile(url=murl, title=name)
                    match2=re.compile("{'url': '(.+?)', 'host': '(.+?)', 'media_id': '.+?'}").findall(str(hosted_media))
                    host = ''
                    for murl,host in match2:
                            main.addDown2(mname+' [COLOR blue]'+name+'[/COLOR]',murl,209,art+'/hosts/'+thumb+".png",art+'/hosts/'+thumb+".png")
                    if 'mightyupload.com' in murl and not host:
                        main.addDown2(mname+' [COLOR blue]'+name+'[/COLOR]',murl,209,art+'/hosts/'+thumb+".png",art+'/hosts/'+thumb+".png")
コード例 #50
0
def ListSceneLogLinks(mname, url):
    html = main.OPENURL(url)
    html = main.unescapes(html)
    if selfAddon.getSetting("hide-download-instructions") != "true":
        main.addLink(
            "[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
            '', '')
    paragraphs = re.compile('<p>.*?</p>', re.I | re.DOTALL).findall(html)
    itemsAdded = 0
    from urlparse import urlparse
    for paragraph in paragraphs:
        links = re.compile('<a[\s]*?href="(.*?)"',
                           re.I | re.DOTALL).findall(paragraph)
        if len(
                links
        ) == 1:  # if more than 1 links per paragraph, its probably splitted file
            for url in links:
                if not re.search('rar', url, re.I):
                    host = urlparse(url).hostname.replace('www.',
                                                          '').partition('.')[0]
                    if main.supportedHost(host):
                        title = mname
                        quality = re.search(
                            '(?i)(720p|1080p|HDTV|PDTV|WEB DL|DVDRIP|WS DSR|DSR|BDRip|WEBRiP)',
                            url, re.I)
                        if quality and not quality.group(
                                1).lower() in mname.lower():
                            title = re.sub('\[COLOR.*?\[/COLOR\]', '',
                                           title).strip()
                            title += ' [COLOR red]' + quality.group(
                                1).upper() + '[/COLOR]'
                        host = re.sub('^(https?://)?[^/]*?([^/^.]+?)\.\w+?/.*',
                                      '\\2', url).upper()
                        thumb = host.lower()
                        main.addDown2(
                            title + ' [COLOR blue]' + host + '[/COLOR]', url,
                            658, art + '/hosts/' + thumb + ".png",
                            art + '/hosts/' + thumb + ".png")
                        itemsAdded += 1
    if not itemsAdded:
        xbmcplugin.endOfDirectory(int(sys.argv[1]), False, False)
        xbmc.executebuiltin("XBMC.Notification(Sorry,No sources found!,3000)")
コード例 #51
0
ファイル: tubeplus.py プロジェクト: noba3/KoTos
def LINK(mname,murl):      
        if BASE_URL not in murl:
            murl=BASE_URL+murl
        html = main.OPENURL(murl)
        if selfAddon.getSetting("hide-download-instructions") != "true":
            main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
        r = re.compile(r'class="(o.+?)">.+?javascript:show\(\'(.+?)\'\,\'.+?\'\,\s\'(.+?)\'\)\;.+?<b>(.+?)said work',re.M|re.DOTALL).findall(html)
        for status, url, hoster, said in r:
            percentage = said.replace('%','')
            host=hoster
            hoster = hoster.replace('www.','').replace('.in','').replace('.net','').replace('.com','').replace('.to','').replace('.org','').replace('.ch','').replace('.eu','').replace('.ES','')
            if int(percentage) in range(0,25):
                title = '[COLOR blue]'+hoster.upper()+'[/COLOR][COLOR red]  '+status+' '+said+'[/COLOR]'
            if int(percentage) in range(25,50):
                title = '[COLOR blue]'+hoster.upper()+'  '+status+' '+said+'[/COLOR]'
            if int(percentage) in range(50,75):
                title = '[COLOR blue]'+hoster.upper()+'[/COLOR][COLOR orange]  '+status+' '+said+'[/COLOR]'
            if int(percentage) in range(75,101):
                title = '[COLOR blue]'+hoster.upper()+'[/COLOR][COLOR=FF67cc33]  '+status+' '+said+'[/COLOR]'
            main.addDown2(main.removeColoredText(mname).strip()+' '+title,'xoxv'+host+'xoxe'+url+'xoxc',1027,art+'/hosts/'+hoster.lower()+'.png',art+'/hosts/'+hoster.lower()+'.png')    
コード例 #52
0
ファイル: tubeplus.py プロジェクト: the-one-/MashUp
def LINK(mname,murl):      
        xbmc.executebuiltin("XBMC.Notification(Please Wait!,Collecting Hosts,1500)")
        if 'http://www.tubeplus.me/' not in murl:
            murl=BASE_URL+murl
        html = main.OPENURL(murl)
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
        r = re.compile(r'class="(o.+?)">.+?javascript:show\(\'(.+?)\'\,\'.+?\'\,\s\'(.+?)\'\)\;.+?<b>(.+?)said work',re.M|re.DOTALL).findall(html)
        for status, url, hoster, said in r:
            percentage = said.replace('%','')
            host=hoster
            hoster = hoster.replace('www.','').replace('.in','').replace('.net','').replace('.com','').replace('.to','').replace('.org','').replace('.ch','').replace('.eu','')
            if int(percentage) in range(0,25):
                title = '[COLOR blue]'+hoster.upper()+'[/COLOR][COLOR red]           '+status+' '+said+'[/COLOR]'
            if int(percentage) in range(25,50):
                title = '[COLOR blue]'+hoster.upper()+'           '+status+' '+said+'[/COLOR]'
            if int(percentage) in range(50,75):
                title = '[COLOR blue]'+hoster.upper()+'[/COLOR][COLOR orange]           '+status+' '+said+'[/COLOR]'
            if int(percentage) in range(75,101):
                title = '[COLOR blue]'+hoster.upper()+'[/COLOR][COLOR=FF67cc33]          '+status+' '+said+'[/COLOR]'
            main.addDown2(mname+' '+title,'xoxv'+host+'xoxe'+url+'xoxc',1027,art+'/hosts/'+hoster.lower()+'.png',art+'/hosts/'+hoster.lower()+'.png')    
コード例 #53
0
def iWatchLINK(mname,url):      
        xbmc.executebuiltin("XBMC.Notification(Please Wait!,Collecting Hosts,1500)")
        link=main.OPENURL(url)
        movie_content = main.unescapes(link)
        movie_content = re.sub("\\\"", "\"", movie_content)
        movie_content=movie_content.replace('\'','')  
        from universal import _common as univ_common
        link2 = univ_common.str_conv(addon.decode(movie_content))
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
        match=re.compile('<a href="(.+?)".+?<img.+?> (.+?)</a>.+?<td>.+?<td>.+?<td>(.+?)</td>', re.DOTALL).findall(link2)
        
        
        for url, name, qua in match[1:]:
            name=name.replace(' ','')
            if name[0:1]=='.':
                name=name[1:]
            name=name.split('.')[0]
            #hosted_media = urlresolver.HostedMediaFile(host=name.lower(), media_id=name.lower())
            #if hosted_media:
            main.addDown2(mname+' [COLOR red]('+qua+')[/COLOR]'+' [COLOR blue]'+name.upper()+'[/COLOR]',url,649,art+'/hosts/'+name.lower()+'.png',art+'/hosts/'+name.lower()+'.png')
コード例 #54
0
def LINKZ(name, url):
    main.addLink(
        "[COLOR orange]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",
        '', '')
    link = main.OPENURL(url)
    link = link.replace('\r', '').replace('\n', '').replace('\t', '').replace(
        '&nbsp;', '').replace('IFRAME SRC', 'iframe src')
    match = re.compile(
        '<b>([^"]*?)</b></span><br /><iframe.+?src="([^"]*?)"').findall(link)
    for host, url in match:
        host = host.replace('AllMyV', 'allmyvideos').replace(
            'VSpot', 'vidspot').replace('TheVid', 'thevideo').replace(
                'Vodlo', 'vodlocker').replace('Vidbul', 'vidbull').replace(
                    'IShar', 'ishared').replace('allmyvideosid', 'allmyvideos')
        host = host.replace('FHoot', 'filehoot').replace('VidtO',
                                                         'vidto').replace(
                                                             'VK-Mob', 'vk')
        main.addDown2(
            name.strip() + " [COLOR blue]" + host.upper() + "[/COLOR]",
            str(url), 2, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
コード例 #55
0
def LISTHOSTS(name,murl,thumb):
    name=main.removeColoredText(name)
    videobug=[]
    yourupload=[]
    video44=[]
    play44=[]
    videoweed=[]
    cheesestream=[]
    videofun=[]
    yucache=[]
    i=1
    j=1
    v=1
    p=1
    vw=1
    c=1
    vf=1
    y=1
    if 'GetDetails' in murl:
        link=main.OPENURL(murl)
        idnum=re.findall('"id":"(.+?)"',link,re.DOTALL)[0]
    else:
        idnum=murl
    link=main.OPENURL('http://api.dramago.com/GetVideos/'+idnum).replace('\/','/')
    collect=re.findall('"(.+?)"',link,re.DOTALL)
    for links in collect:
        if 'videobug' in links or 'easyvideo' in links:
            main.addDown2(name+' [COLOR blue]VideoBug Part '+str(i)+'[/COLOR]',links,272,thumb,'')
            videobug.append(('Part '+str(i),links))
            i=i+1
    if videobug:
        main.addDown2(name+' [COLOR blue]VideoBug Play All[/COLOR]',str(videobug),272,thumb,'')  
    for links in collect:
        if 'yourupload' in links:
            main.addDown2(name+' [COLOR yellow]YourUpload Part '+str(j)+'[/COLOR]',links,272,thumb,'')
            yourupload.append(('Part '+str(j),links))
            j=j+1          
    if yourupload :
        main.addDown2(name+' [COLOR yellow]YourUpload Play All[/COLOR]',str(yourupload),272,thumb,'')
    for links in collect:
        if 'video44' in links or 'video66' in links:
            main.addDown2(name+' [COLOR red]Video44 Part '+str(v)+'[/COLOR]',links,272,thumb,'')
            video44.append(('Part '+str(v),links))
            v=v+1
    if video44:
        main.addDown2(name+' [COLOR red]Video44 Play All[/COLOR]',str(video44),272,thumb,'')
    for links in collect:
        if 'play44' in links or 'play66' in links or 'playbb' in links:
            main.addDown2(name+' [COLOR green]Play44 Part '+str(p)+'[/COLOR]',links,272,thumb,'')
            play44.append(('Part '+str(p),links))
            p=p+1
    if play44:
        main.addDown2(name+' [COLOR green]Play44 Play All[/COLOR]',str(play44),272,thumb,'')
    for links in collect:
        if 'videoweed' in links:
            main.addDown2(name+' [COLOR aqua]Videoweed Part '+str(vw)+'[/COLOR]',links,272,thumb,'')
            videoweed.append(('Part '+str(vw),links))
            vw=vw+1
    if videoweed:
        main.addDown2(name+' [COLOR aqua]Videoweed Play All[/COLOR]',str(videoweed),272,thumb,'')
    for links in collect:
        if 'cheesestream' in links:
            main.addDown2(name+' [COLOR purple]Cheesestream Part '+str(c)+'[/COLOR]',links,272,thumb,'')
            cheesestream.append(('Part '+str(c),links))
            c=c+1
    if cheesestream:
        main.addDown2(name+' [COLOR purple]Cheesestream Play All[/COLOR]',str(cheesestream),272,thumb,'')
    for links in collect:
        if 'videofun' in links:
            main.addDown2(name+' [COLOR maroon]Videofun Part '+str(vf)+'[/COLOR]',links,272,thumb,'')
            videofun.append(('Part '+str(vf),links))
            vf=vf+1
    if videofun:
        main.addDown2(name+' [COLOR maroon]Videofun Play All[/COLOR]',str(videofun),272,thumb,'')
    for links in collect:
        if 'yucache' in links:
            main.addDown2(name+' [COLOR maroon]Yucache Part '+str(y)+'[/COLOR]',links,272,thumb,'')
            yucache.append(('Part '+str(y),links))
            y=y+1
    if yucache:
        main.addDown2(name+' [COLOR maroon]Yucache Play All[/COLOR]',str(yucache),272,thumb,'')
コード例 #56
0
ファイル: animetoon.py プロジェクト: noba3/KoTos
def LISTHOSTS(name,murl,thumb):
    name=main.removeColoredText(name)
    collect=[]
    videobug=[]
    yourupload=[]
    video44=[]
    play44=[]
    videoweed=[]
    cheesestream=[]
    videofun=[]
    byzoo=[]
    yucache=[]
    i=1
    j=1
    v=1
    p=1
    vw=1
    c=1
    vf=1
    b=1
    y=1

    link=main.OPENURL(murl).replace('\/','/').replace('\r','').replace('\n','').replace('\t','').replace('&nbsp;','').replace(' class="selected"','').replace('&rarr;','')
    """parts=re.compile('<li><a href="(http://www.animetoon.tv/.+?/\d-\d+).+?>(Part.+?)</a>').findall(link)
    print len(parts)
    if part_pages:
        for url,pname in part_pages:
            match=re.compile('</ul></div><div><.+?src="(.+?)"').findall(main.OPENURL(url))
            for url in match:
                collect.append(url)"""
    try:
        count=1
        match=re.findall('<div><iframe src="(.+?)"',link,re.I)
        for url in match:
            parts=re.compile('<li><a href="http://www.animetoon.tv/.+?/'+str(count)+'-([^<]+)">Part(.+?)</a>').findall(link)
            if len(parts)>1:
                for item,num in parts:
                    furl=url.replace('part_1','part_'+str(item))
                    collect.append(furl)
            else:
                collect.append(url)
            count=count+1
    
    except: pass
    for links in collect:
        if 'byzoo' in links:
            main.addDown2(name+' [COLOR tan]Byzoo Part '+str(b)+'[/COLOR]',links,379,thumb,'')
            byzoo.append(('Part '+str(b),links))
            b=b+1
    if byzoo and len(byzoo)>1:
        main.addDown2(name+' [COLOR tan]Byzoo Play All[/COLOR]',str(byzoo),379,thumb,'')  
    for links in collect:
        if 'videobug' in links or 'easyvideo' in links:
            main.addDown2(name+' [COLOR blue]VideoBug Part '+str(i)+'[/COLOR]',links,379,thumb,'')
            videobug.append(('Part '+str(i),links))
            i=i+1
    if videobug and len(videobug)>1:
        main.addDown2(name+' [COLOR blue]VideoBug Play All[/COLOR]',str(videobug),379,thumb,'')  
    for links in collect:
        if 'yourupload' in links:
            main.addDown2(name+' [COLOR yellow]YourUpload Part '+str(j)+'[/COLOR]',links,379,thumb,'')
            yourupload.append(('Part '+str(j),links))
            j=j+1          
    if yourupload and len(yourupload)>1:
        main.addDown2(name+' [COLOR yellow]YourUpload Play All[/COLOR]',str(yourupload),379,thumb,'')
    for links in collect:
        if 'video44' in links or 'video66' in links:
            main.addDown2(name+' [COLOR red]Video44 Part '+str(v)+'[/COLOR]',links,379,thumb,'')
            video44.append(('Part '+str(v),links))
            v=v+1
    if video44 and len(video44)>1:
        main.addDown2(name+' [COLOR red]Video44 Play All[/COLOR]',str(video44),379,thumb,'')
    for links in collect:
        if 'play44' in links or 'play66' in links or 'playbb' in links:
            main.addDown2(name+' [COLOR green]Play44 Part '+str(p)+'[/COLOR]',links,379,thumb,'')
            play44.append(('Part '+str(p),links))
            p=p+1
    if play44 and len(play44)>1:
        main.addDown2(name+' [COLOR green]Play44 Play All[/COLOR]',str(play44),379,thumb,'')
    for links in collect:
        if 'videoweed' in links:
            main.addDown2(name+' [COLOR aqua]Videoweed Part '+str(vw)+'[/COLOR]',links,379,thumb,'')
            videoweed.append(('Part '+str(vw),links))
            vw=vw+1
    if videoweed and len(videoweed)>1:
        main.addDown2(name+' [COLOR aqua]Videoweed Play All[/COLOR]',str(videoweed),379,thumb,'')
    for links in collect:
        if 'cheesestream' in links:
            main.addDown2(name+' [COLOR purple]Cheesestream Part '+str(c)+'[/COLOR]',links,379,thumb,'')
            cheesestream.append(('Part '+str(c),links))
            c=c+1
    if cheesestream and len(cheesestream)>1:
        main.addDown2(name+' [COLOR purple]Cheesestream Play All[/COLOR]',str(cheesestream),379,thumb,'')
    for links in collect:
        if 'videofun' in links:
            main.addDown2(name+' [COLOR maroon]Videofun Part '+str(vf)+'[/COLOR]',links,379,thumb,'')
            videofun.append(('Part '+str(vf),links))
            vf=vf+1
    if videofun and len(videofun)>1:
        main.addDown2(name+' [COLOR maroon]Videofun Play All[/COLOR]',str(videofun),379,thumb,'')
    for links in collect:
        if 'yucache' in links:
            main.addDown2(name+' [COLOR maroon]Yucache Part '+str(y)+'[/COLOR]',links,379,thumb,'')
            yucache.append(('Part '+str(y),links))
            y=y+1
    if yucache:
        main.addDown2(name+' [COLOR maroon]Yucache Play All[/COLOR]',str(yucache),379,thumb,'')
コード例 #57
0
ファイル: watchseries.py プロジェクト: the-one-/MashUp
def LISTHOST(name,murl):
        link=main.OPENURL(murl)
        link=link.replace('\r','').replace('\n','').replace('\t','')
        main.addLink("[COLOR red]For Download Options, Bring up Context Menu Over Selected Link.[/COLOR]",'','')
        putlocker=re.compile('<span>putlocker.com</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(putlocker) > 0:
            for url in putlocker:
                main.addDown2(name+"[COLOR blue] : Putlocker[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/putlocker.png',art+'/hosts/putlocker.png')
        sockshare=re.compile('<span>sockshare.com</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(sockshare) > 0:
            for url in sockshare:
                main.addDown2(name+"[COLOR blue] : Sockshare[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/sockshare.png',art+'/hosts/sockshare.png')
        nowvideo=re.compile('<span>nowvideo.co</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(nowvideo) > 0:
            for url in nowvideo:
                main.addDown2(name+"[COLOR blue] : Nowvideo[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/nowvideo.png',art+'/hosts/nowvideo.png')
        oeupload=re.compile('<span>180upload.com/span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(oeupload) > 0:
            for url in oeupload:
                main.addDown2(name+"[COLOR blue] : 180upload[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/180upload.png',art+'/hosts/180upload.png')
        filenuke=re.compile('<span>filenuke.com</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(filenuke) > 0:
            for url in filenuke:
                main.addDown2(name+"[COLOR blue] : Filenuke[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/filenuke.png',art+'/hosts/filenuke.png')
        flashx=re.compile('<span>flashx.tv</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(flashx) > 0:
            for url in flashx:
                main.addDown2(name+"[COLOR blue] : Flashx[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/flashx.png',art+'/hosts/flashx.png')
        novamov=re.compile('<span>novamov.com</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(novamov) > 0:
            for url in novamov:
                main.addDown2(name+"[COLOR blue] : Novamov[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/novamov.png',art+'/hosts/novamov.png')
        uploadc=re.compile('<span>uploadc.com</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(uploadc) > 0:
            for url in uploadc:
                main.addDown2(name+"[COLOR blue] : Uploadc[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/uploadc.png',art+'/hosts/uploadc.png')
        xvidstage=re.compile('<span>xvidstage.com</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(xvidstage) > 0:
            for url in xvidstage:
                main.addDown2(name+"[COLOR blue] : Xvidstage[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/xvidstage.png',art+'/hosts/xvidstage.png')
        stagevu=re.compile('<span>stagevu.com</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(stagevu) > 0:
            for url in stagevu:
                main.addDown2(name+"[COLOR blue] : StageVu[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/stagevu.png',art+'/hosts/stagevu.png')        
        gorillavid=re.compile('<span>gorillavid.in</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(gorillavid)==0:
                gorillavid=re.compile('<span>gorillavid.com</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(gorillavid) > 0:
            for url in gorillavid:
                main.addDown2(name+"[COLOR blue] : Gorillavid[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/gorillavid.png',art+'/hosts/gorillavid.png')
        divxstage=re.compile('<span>divxstage.eu</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(divxstage) > 0:
            for url in divxstage:
                main.addDown2(name+"[COLOR blue] : Divxstage[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/divxstage.png',art+'/hosts/divxstage.png')
        moveshare=re.compile('<span>moveshare.net</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(moveshare) > 0:
            for url in moveshare:
                main.addDown2(name+"[COLOR blue] : Moveshare[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/moveshare.png',art+'/hosts/moveshare.png')
        sharesix=re.compile('<span>sharesix.com</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(sharesix) > 0:
            for url in sharesix:
                main.addDown2(name+"[COLOR blue] : Sharesix[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/sharesix.png',art+'/hosts/sharesix.png')
        movpod=re.compile('<span>movpod.in</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(movpod)==0:
                movpod=re.compile('<span>movpod.net</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(movpod) > 0:
            for url in movpod:
                main.addDown2(name+"[COLOR blue] : Movpod[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/movpod.png',art+'/hosts/movpod.png')
        daclips=re.compile('<span>daclips.in</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(daclips)==0:
                daclips=re.compile('<span>daclips.com</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(daclips) > 0:
            for url in daclips:
                main.addDown2(name+"[COLOR blue] : Daclips[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/daclips.png',art+'/hosts/daclips.png')
        videoweed=re.compile('<span>videoweed.es</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(videoweed) > 0:
            for url in videoweed:
                main.addDown2(name+"[COLOR blue] : Videoweed[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/videoweed.png',art+'/hosts/videoweed.png')        
        zooupload=re.compile('<span>zooupload.com</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(zooupload) > 0:
            for url in zooupload:
                main.addDown2(name+"[COLOR blue] : Zooupload[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/zooupload.png',art+'/hosts/zooupload.png')
        zalaa=re.compile('<span>zalaa.com</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(zalaa) > 0:
            for url in zalaa:
                main.addDown2(name+"[COLOR blue] : Zalaa[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/zalaa.png',art+'/hosts/zalaa.png')
        vidxden=re.compile('<span>vidxden.com</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(vidxden) > 0:
            for url in vidxden:
                main.addDown2(name+"[COLOR blue] : Vidxden[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/vidxden.png',art+'/hosts/vidxden.png')
        vidbux=re.compile('<span>vidbux.com</span></td><td> <a target=".+?" href="(.+?)"').findall(link)
        if len(vidbux) > 0:
            for url in vidbux:
                main.addDown2(name+"[COLOR blue] : Vidbux[/COLOR]",url+'xocx'+murl+'xocx',574,art+'/hosts/vidbux.png',art+'/hosts/vidbux.png')
コード例 #58
0
def Linkz(name, url):
    link = main.OPENURL(url)
    link = link.replace('\r',
                        '').replace('\n',
                                    '').replace('\t',
                                                '').replace('&nbsp;', '')
    vodlocker = re.compile(
        '"http://vodlocker.com/embed-([^"]*?)-.+?.html"').findall(link)
    for url in vodlocker:
        url = 'http://vodlocker.com/' + url
        host = 'vodlocker'
        main.addDown2(
            name.strip() + " [COLOR red]" + host.upper() + "[/COLOR]",
            str(url), 2, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    played = re.compile('http://played.to/embed-([^"]*?)-.+?.html').findall(
        link)
    for url in played:
        url = 'http://played.to/' + url
        host = 'played'
        main.addDown2(
            name.strip() + " [COLOR red]" + host.upper() + "[/COLOR]",
            str(url), 2, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    thevideo = re.compile(
        '"http://www.thevideo.me/embed-([^"]*?)-.+?.html').findall(link)
    for url in thevideo:
        url = 'http://www.thevideo.me/' + url
        host = 'thevideo'
        main.addDown2(
            name.strip() + " [COLOR red]" + host.upper() + "[/COLOR]",
            str(url), 2, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    vidbull = re.compile(
        'http://vidbull.com/embed-zvfcf9rs2kid-540x318.html').findall(link)
    for url in vidbull:
        url = 'http://vidbull.com/' + url
        host = 'vidbull'
        main.addDown2(
            name.strip() + " [COLOR red]" + host.upper() + "[/COLOR]",
            str(url), 2, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    youwatch = re.compile(
        'http://youwatch.org/embed-([^"]*?)-.+?.html').findall(link)
    for url in youwatch:
        url = 'http://youwatch.org/' + url
        host = 'youwatch'
        main.addDown2(
            name.strip() + " [COLOR red]" + host.upper() + "[/COLOR]",
            str(url), 2, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    vidto = re.compile('"http://vidto.me/embed-([^"]*?)-.+?.html"').findall(
        link)
    for url in vidto:
        url = 'http://vidto.me/' + url
        host = 'vidto'
        main.addDown2(
            name.strip() + " [COLOR red]" + host.upper() + "[/COLOR]",
            str(url), 2, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    vshare = re.compile('http://vshare.eu/embed-([^"]*?)-.+?.html').findall(
        link)
    for url in vshare:
        url = 'http://vshare.eu/' + url
        host = 'vshare'
        main.addDown2(
            name.strip() + " [COLOR red]" + host.upper() + "[/COLOR]",
            str(url), 2, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    vidspot = re.compile('"http://vidspot.net/embed-([^"]*?).html').findall(
        link)
    for url in vidspot:
        url = 'http://vidspot.net/' + url
        host = 'vidspot'
        main.addDown2(
            name.strip() + " [COLOR red]" + host.upper() + "[/COLOR]",
            str(url), 2, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    allmyvideos = re.compile(
        '"http://allmyvideos.net/embed-([^"]*?)-.+?.html"').findall(link)
    for url in allmyvideos:
        url = 'http://allmyvideos.net/' + url
        host = 'allmyvideos'
        main.addDown2(
            name.strip() + " [COLOR red]" + host.upper() + "[/COLOR]",
            str(url), 2, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    vkmobile = re.compile(
        'http://videoapi.my.mail.ru/videos/embed/mail/geek.tv/_myvideo/([^"]*?).html'
    ).findall(link)
    for url in vkmobile:
        url = 'http://videoapi.my.mail.ru/videos/embed/mail/geek.tv/_myvideo/' + url
        host = 'VK-Mobile'
        main.addDown2(
            name.strip() + " [COLOR red]" + host.upper() + "[/COLOR]",
            str(url), 2, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    fhoot = re.compile('http://filehoot.com/embed-([^"]*?)-.+?.html').findall(
        link)
    for url in fhoot:
        url = 'http://filehoot.com/' + url
        host = 'filehoot'
        main.addDown2(
            name.strip() + " [COLOR red]" + host.upper() + "[/COLOR]",
            str(url), 2, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')
    exashare = re.compile(
        '"http://www.exashare.com/embed-([^"]*?)-.+?.html"').findall(link)
    for url in exashare:
        url = 'http://www.exashare.com/' + url
        host = 'exashare'
        main.addDown2(
            name.strip() + " [COLOR red]" + host.upper() + "[/COLOR]",
            str(url), 2, art + '/hosts/' + host + '.png',
            art + '/hosts/' + host + '.png')