Beispiel #1
0
def VIDEOLINKS(name, url, thumb):
    req = urllib2.Request(url)
    req.add_header(
        'User-Agent',
        'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3'
    )
    response = urllib2.urlopen(req)
    link = response.read()
    response.close()
    match = re.compile('href="/movies/ext/(.+?)"').findall(link)
    for num in match:
        url = base_url + '/movies/ext/' + num
        req = urllib2.Request(url)
        req.add_header(
            'User-Agent',
            'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3'
        )
        response = urllib2.urlopen(req)
        link = response.read()
        response.close()
        url = response.geturl()

        if url:
            hmf = urlresolver.HostedMediaFile(url)
            if hmf:
                host = hmf.get_host()
                hthumb = main.GETHOSTTHUMB(host)
                try:
                    main.addHDir(name, url, 'resolve', thumb, hthumb)
                except:
                    continue
def VIDEOLINKS(name,url,thumb):
        link = net.http_GET(url).content
        match=re.compile('films="(.+?)"', re.S).findall(link)
        if match:
            match1=re.compile('(http[s]?://.+?.mp4)').findall(match[0])
            if not match1:
                match1=re.compile('(http[s]?://.+?.flv)').findall(match[0])
            if match1:
                partcounter=1
                for url in match1:
                        disc = re.compile('.+?cd(\d+).+?', re.S|re.I).findall(url)
                        if disc:
                            discno = " CD " + disc[0]
                            cdname = name + discno
                        else:
                            if partcounter > 1:
                                discno=' Part' + str(partcounter)
                                cdname = name + discno
                                partcounter +=1
                            else:
                                discno=''
                                cdname=name
                                partcounter +=1

                        if main.resolvable(url):
                                try:
                                        url = url +'|Referer=http://en.paradisehill.cc/static/flowplayer/flowplayer.commercial-3.2.18.swf'
                                        main.addHDir(cdname,url,'resolve',thumb, disk=discno)
                                except:
                                        continue
Beispiel #3
0
def VIDEOLINKS(name,url,thumb):
        req = urllib2.Request(url)
        req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
        response = urllib2.urlopen(req)
        link=response.read()
        response.close()
        match=re.compile('href="/movies/ext/(.+?)"').findall(link)
        for num in match:
                url = base_url + '/movies/ext/' + num
                req = urllib2.Request(url)
                req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
                response = urllib2.urlopen(req)
                link=response.read()
                response.close()
                url = response.geturl()

                if url:
                        hmf = urlresolver.HostedMediaFile(url)
                        if hmf:
                                host = hmf.get_host()
                                hthumb = main.GETHOSTTHUMB(host)
                                try:
                                        main.addHDir(name,url,'resolve',thumb,hthumb)
                                except:
                                        continue
Beispiel #4
0
def VIDEOLINKS(name, url, thumb):
    link = net.http_GET(url).content
    match = re.compile('films="(.+?)"', re.S).findall(link)
    if match:
        match1 = re.compile('(http[s]?://.+?.mp4)').findall(match[0])
        if not match1:
            match1 = re.compile('(http[s]?://.+?.flv)').findall(match[0])
        if match1:
            partcounter = 1
            for url in match1:
                disc = re.compile('.+?cd(\d+).+?', re.S | re.I).findall(url)
                if disc:
                    discno = " CD " + disc[0]
                    cdname = name + discno
                else:
                    if partcounter > 1:
                        discno = ' Part' + str(partcounter)
                        cdname = name + discno
                        partcounter += 1
                    else:
                        discno = ''
                        cdname = name
                        partcounter += 1

                if main.resolvable(url):
                    try:
                        url = url + '|Referer=http://en.paradisehill.cc/static/flowplayer/flowplayer.commercial-3.2.18.swf'
                        main.addHDir(cdname,
                                     url,
                                     'resolve',
                                     thumb,
                                     disk=discno)
                    except:
                        continue
def VIDEOLINKS(name,url,thumb):
        link = net.http_GET(url).content
        parse = re.compile('class="eBlock"(.*?)class="MessWrapsNews"', re.S).search(link)
        if parse:
            match1=re.compile('(http[s]?://(?!fs..directupload)(?!szene-streams)(?!www.szene-streams)(?!flash-moviez.ucoz)(?!www.youtube.com)(.*?)\/.*?)[\'|"|\&|<|\s]', re.S).findall(parse.group(1))
            for url, hoster in match1:
                hoster = hoster.replace('play.','').replace('www.','').replace('embed.','')
                main.addHDir(name, url,'resolve',thumb)
Beispiel #6
0
def videoLinks(url,name):
        link = net.http_GET(url).content
        match=re.compile("config: {\r\n           \'file\': \'(.+?)'").findall(link)
        for url in match:
                try:
                        main.addHDir(name,url,'resolve',artwork + '/hosts/play.png')
                except:
                        pass
def VIDEOLINKS(url,name,thumb):
        link = net.http_GET(url).content
        match=re.compile('<a rel="nofollow" target="_blank" href="(.+?)">').findall(link)
        for url in match:
                if main.resolvable(url):
                        try:
                                main.addHDir(name,url,'resolve','')
                        except:
                                continue
Beispiel #8
0
def videoLinks(url,name):
        link = net.http_GET(url).content
        match=re.compile('<a target="_blank" id="hovered" href="(.+?)">.+?</a>').findall(link)
        for url in match:
                if main.resolvable(url):
                        try:
                                main.addHDir(name,url,'resolve','')
                        except:
                                continue
Beispiel #9
0
def VIDEOLINKS(url,name,thumb):
        link = net.http_GET(url).content
        match=re.compile('<iframe src="(.+?)"').findall(link)
        for url in match:
                if main.resolvable(url):
                        try:
                                main.addHDir(name,url,'resolve','')
                        except:
                                continue
Beispiel #10
0
def VIDEOLINKS(url,name,thumb):
        link = net.http_GET(url).content
        match=re.compile('<a target="_blank" id="hovered" href="(.+?)">.+?</a>').findall(link)
        for url in match:
                if main.resolvable(url):
                        hthumb = main.GETHOSTTHUMB(main.getHost(url))
                try:
                        main.addHDir(name,hmf.get_url(),'resolve',thumb,hthumb)
                except:
                        continue
Beispiel #11
0
def VIDEOLINKS(url, name, thumb):
    link = net.http_GET(url).content
    match = re.compile('<iframe src="(.+?)"').findall(link)
    for url in match:
        if main.resolvable(url):
            hthumb = main.GETHOSTTHUMB(main.getHost(url))
            try:
                main.addHDir(name, url, 'resolve', thumb, hthumb)
            except:
                continue
Beispiel #12
0
def VIDEOLINKS(url, name, thumb):
    link = net.http_GET(url).content
    match = re.compile(
        '<a rel="nofollow" target="_blank" href="(.+?)">').findall(link)
    for url in match:
        if main.resolvable(url):
            try:
                main.addHDir(name, url, 'resolve', '')
            except:
                continue
Beispiel #13
0
def VIDEOLINKS(url,name,thumb):
        link = net.http_GET(url).content
        match=re.compile('<iframe src="(.+?)"').findall(link)
        for url in match:
                if main.resolvable(url):
                        hthumb = main.GETHOSTTHUMB(main.getHost(url))
                        try:
                                main.addHDir(name,url,'resolve',thumb,hthumb)
                        except:
                                continue
Beispiel #14
0
def videoLinks(url,name):
        link = net.http_GET(url).content
        match=re.compile("file: \'(.+?)'").findall(link)
        if len(match) == 0:
                match=re.compile('src="(.+?)" frameborder=".+?" allowfullscreen>').findall(link)
        for url in match:
                try:
                        main.addHDir(name,url,'resolve','')
                except:
                        continue
Beispiel #15
0
def VIDEOLINKS(name,url,thumb):
        link = net.http_GET(url).content
        match=re.compile('<a\nhref="(.+?)" class="ext-link"').findall(link)
        for url in match:
                head,sep,tail = url.partition('=')
                if main.resolvable(tail):
                        try:
                                main.addHDir(name,tail,'resolve','')
                        except:
                                continue
Beispiel #16
0
def VIDEOLINKS(name,url,thumb):
        link = net.http_GET(url).content
        match=re.compile('<a\nhref="(.+?)" class="ext-link"').findall(link)
        for url in match:
                head,sep,tail = url.partition('=')
                if main.resolvable(tail):
                        try:
                                main.addHDir(name,tail,'resolve','')
                        except:
                                continue
Beispiel #17
0
def VIDEOLINKS(name, url, thumb):

    link = net.http_GET(url).content
    match = re.compile('class="videosection">(.+?)class="textsection">', re.S).search(link)
    match1 = re.compile("(http[s]?://.+?\/.*?)['|\"|\&|<]", re.S).findall(match.group(0))
    for url in match1:
        if main.resolvable(url):
            try:
                main.addHDir(name, url, "resolve", "")
            except:
                continue
Beispiel #18
0
def VIDEOLINKS(name,url):
        link = net.http_GET(url).content
        match=re.compile('<p><a href="(.+?)" rel="nofollow">.+?</a></p>').findall(link)
        for url in match:
                
                
                if main.resolvable(url):
                        try:
                                main.addHDir(name,url,'resolve','')
                        except:
                                continue
Beispiel #19
0
def VIDEOLINKS(name, url):
    link = net.http_GET(url).content
    match = re.compile(
        '<p><a href="(.+?)" rel="nofollow">.+?</a></p>').findall(link)
    for url in match:

        if main.resolvable(url):
            try:
                main.addHDir(name, url, 'resolve', '')
            except:
                continue
Beispiel #20
0
def VIDEOLINKS(name,url,thumb):
        link = net.http_GET(url).content
        parse = re.search('<div class="season-selector">(.+?)<div class="season-selector-np">', link, re.S)
        if parse:
            SERIESSEASON(url,thumb)
        else:
            match1=re.compile('data-href="(.+?)".*?<span>(.+?)</span>', re.S).findall(link)
            for urls,hoster in match1:
                streams = urls.split("#,")
                if streams:
                    for url in streams:
                        main.addHDir(name, url,'resolve',thumb)
Beispiel #21
0
def VIDEOLINKS(name,url,thumb,year):
        skip = 4
        inc = 0
        link = net.http_GET(url).content
        match=re.compile('<li><a href="(.+?)">.+?</a></li>').findall(link)
        for url in match:
                if inc > skip:
                        if main.resolvable(url):
                                try:
                                        main.addHDir(name,url,'resolve','')
                                except:
                                        continue
                inc += 1
Beispiel #22
0
def VIDEOLINKS(name, url, thumb):

    link = net.http_GET(url).content
    match = re.compile('class="videosection">(.+?)class="textsection">',
                       re.S).search(link)
    match1 = re.compile('(http[s]?://.+?\/.*?)[\'|"|\&|<]',
                        re.S).findall(match.group(0))
    for url in match1:
        if main.resolvable(url):
            try:
                main.addHDir(name, url, 'resolve', '')
            except:
                continue
Beispiel #23
0
def VIDEOLINKS(name,url,thumb):
        req = urllib2.Request(url)
        req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
        response = urllib2.urlopen(req)
        link=response.read()
        response.close()
        match=re.compile("<a target='_blank' href='(.+?)'>").findall(link)
        for url in match:
                        hmf = urlresolver.HostedMediaFile(url)
                        if hmf:
                                host = hmf.get_host()
                                hthumb = main.GETHOSTTHUMB(host)
                                main.addHDir(name,url,'resolve',thumb,hthumb)
Beispiel #24
0
def VIDEOLINKS(name, url, thumb):
    link = net.http_GET(url).content
    parse = re.compile('class="eBlock"(.*?)class="MessWrapsNews"',
                       re.S).search(link)
    if parse:
        match1 = re.compile(
            '(http[s]?://(?!fs..directupload)(?!szene-streams)(?!www.szene-streams)(?!flash-moviez.ucoz)(?!www.youtube.com)(.*?)\/.*?)[\'|"|\&|<|\s]',
            re.S).findall(parse.group(1))
        for url, hoster in match1:
            hoster = hoster.replace('play.',
                                    '').replace('www.',
                                                '').replace('embed.', '')
            main.addHDir(name, url, 'resolve', thumb)
Beispiel #25
0
def VIDEOLINKS(name,url,thumb):
        print "eliinfo ################################################################# url",url
        link = net.http_GET(url).content
        match=re.compile('class="atest" target="_blank"   href="(.+?)">').findall(link)
        print "eliinfo VIDEOLINKS############ match1"+ match[0]
        for url in match:
                hmf = urlresolver.HostedMediaFile(url)
                print "eliinfo VIDEOLINKS########hmf", hmf
                if main.resolvable(url):
                        print "eliinfo VIDEOLINKS######## try"
                        try:
                                main.addHDir(name,url,'resolve','')
                        except:
                                continue
Beispiel #26
0
def VIDEOLINKS(name,url,thumb):
        inc = 0
        link = net.http_GET(url).content
        match=re.compile('<td class="sideleft"><a href="(.+?)"').findall(link)
        for url in match:
                if inc < 50:
                        link = net.http_GET(url).content
                        urls=re.compile('<iframe name="frame" class="frame" src="(.+?)"').findall(link)
                        if main.resolvable(urls[0]):
                                try:
                                        main.addHDir(name,str(urls[0]),'resolve','')
                                        inc +=1
                                except:
                                        continue
Beispiel #27
0
def VIDEOLINKS(url,name,thumb):
        hthumb = ''
        link = net.http_GET(url).content
        match=re.compile('<input type=button value="(.+?)" onClick="javascript:popUp((.+?))">').findall(link)
        for host, url,url2 in match:
                url = base_url + url
                url = re.sub("[')(]", '', url)
                link = net.http_GET(url).content
                links2=re.compile('<frameset  cols=".+?">\n  <frame src="(.+?)" />\n  <frame src=".+?" />').findall(link)
                if len(links2) > 0:
                        url = str(links2[0])
                if main.resolvable(url):
                        if host == 'Watch Part 1-ePornik':
                                hthumb = artwork + '/hosts/epornik1.png'
                        elif host == 'Watch Part 2-ePornik':
                                hthumb = artwork + '/hosts/epornik2.png'
                        elif host == 'Watch Part 3-ePornik':
                                hthumb = artwork + '/hosts/epornik3.png'
                        elif host == 'Watch Part 4-ePornik':
                                hthumb = artwork + '/hosts/epornik4.png'                         
                        elif host == 'Watch Part 1-YouWatch':
                                hthumb = artwork + '/hosts/youwatch1.png'
                        elif host == 'Watch Part 2-YouWatch':
                                hthumb = artwork + '/hosts/youwatch2.png'
                        elif host == 'Watch Part 3-YouWatch':
                                hthumb = artwork + '/hosts/youwatch3.png'
                        elif host == 'Watch Part 4-YouWatch':
                                hthumb = artwork + '/hosts/youwatch4.png'
                        elif host == 'Watch Part 1-Billionuploads':
                                hthumb = artwork + '/hosts/billionuploads1.png'
                        elif host == 'Watch Part 2-Billionuploads':
                                hthumb = artwork + '/hosts/billionuploads2.png'
                        elif host == 'Watch Part 3-Billionuploads':
                                hthumb = artwork + '/hosts/billionuploads3.png'
                        elif host == 'Watch Part 4-Billionuploads':
                                hthumb = artwork + '/hosts/billionuploads4.png'
                        elif host == 'Watch Part 1-Nosvideo':
                                hthumb = artwork + '/hosts/nosvideo1.png'
                        elif host == 'Watch Part 2-Nosvideo':
                                hthumb = artwork + '/hosts/nosvideo2.png'
                        elif host == 'Watch Part 3-Nosvideo':
                                hthumb = artwork + '/hosts/nosvideo3.png'
                        elif host == 'Watch Part 4-Nosvideo':
                                hthumb = artwork + '/hosts/nosvideo4.png'
                        else:
                                hthumb = main.GETHOSTTHUMB(main.getHost(url))
                        try:
                                main.addHDir(name,url,'resolve',hthumb)
                        except:
                                continue
Beispiel #28
0
def VIDEOLINKS(url,name,thumb):
        link = net.http_GET(url).content
        match=re.compile('<a target="_blank" href="(.+?)">.+?</a>').findall(link)
        for url in match:
                if 'fanstash' in url:
                        continue
                else:
                        
                        if main.resolvable(url):
                                               
                                try:
                                        main.addHDir(name,url,'resolve','')
                                except:
                                        continue
Beispiel #29
0
def VIDEOLINKS(name,url,thumb):
        link = net.http_GET(url).content
        match=re.compile('<iframe src="(.+?)" width=".+?" height=".+?" scrolling=".+?" frameborder=".+?"></iframe>').findall(link)
        for url in match:
                if url == '/300x250.html':
                        continue
                else:
                        try:       
                                try:
                                        if main.resolvable(url):
                                                main.addHDir(name,url,'resolve','')
                                except:
                                        continue
                        except:
                                continue
Beispiel #30
0
def SERIESLINKS(name, dataPost,thumb):
    if dataPost:
        streamcounter = 0
        newList =[]
        dataPostdic = eval(dataPost)
        link=net.http_POST(base_url+'/engine/ajax/a.sseries.php', dataPostdic).content
        match=re.compile('(http[s]?:\\\/\\\/(.+?)\\\/.+?)[#|"]',re.S).findall(link)
        if match:
            for url,hoster in match:
                link = str(url).replace('&#038;','&').replace('&amp;','&').replace('\/','/')
                if main.resolvable(link):
                    try:
                        main.addHDir(name,link,'resolve',thumb)
                    except:
                        continue
Beispiel #31
0
def VIDEOLINKS(name,url):
        req = urllib2.Request(url)
        req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
        response = urllib2.urlopen(req)
        link=response.read()
        response.close()
        match=re.compile('<p><a href="(.+?)" rel="nofollow">.+?</a></p>').findall(link)
        for url in match:
                hmf = urlresolver.HostedMediaFile(url)
                hthumb = main.GETHOSTTHUMB(hmf.get_host())
                if hmf:
                        try:
                                main.addHDir(name,url,'resolve','',hthumb)
                        except:
                                continue
Beispiel #32
0
def VIDEOLINKS(name, url, thumb):
    link = net.http_GET(url).content
    parse = re.search(
        '<div class="season-selector">(.+?)<div class="season-selector-np">',
        link, re.S)
    if parse:
        SERIESSEASON(url, thumb)
    else:
        match1 = re.compile('data-href="(.+?)".*?<span>(.+?)</span>',
                            re.S).findall(link)
        for urls, hoster in match1:
            streams = urls.split("#,")
            if streams:
                for url in streams:
                    main.addHDir(name, url, 'resolve', thumb)
Beispiel #33
0
def VIDEOLINKS(name, url, thumb):
    print "eliinfo ################################################################# url", url
    link = net.http_GET(url).content
    match = re.compile(
        'class="atest" target="_blank"   href="(.+?)">').findall(link)
    print "eliinfo VIDEOLINKS############ match1" + match[0]
    for url in match:
        hmf = urlresolver.HostedMediaFile(url)
        print "eliinfo VIDEOLINKS########hmf", hmf
        if main.resolvable(url):
            print "eliinfo VIDEOLINKS######## try"
            try:
                main.addHDir(name, url, 'resolve', '')
            except:
                continue
Beispiel #34
0
def VIDEOLINKS(name, url, thumb):
    req = urllib2.Request(url)
    req.add_header(
        'User-Agent',
        'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3'
    )
    response = urllib2.urlopen(req)
    link = response.read()
    response.close()
    match = re.compile("<a target='_blank' href='(.+?)'>").findall(link)
    for url in match:
        hmf = urlresolver.HostedMediaFile(url)
        if hmf:
            host = hmf.get_host()
            hthumb = main.GETHOSTTHUMB(host)
            main.addHDir(name, url, 'resolve', thumb, hthumb)
Beispiel #35
0
def VIDEOLINKS(name,url,thumb):
		#print "elinfo ############ VIDEOLINKS url", url
		link = net.http_GET(url).content
		#print "elinfo ############ VIDEOLINKS link", link
		
		match=re.compile('href="(http://(streamcloud|flashx|divxstage|movshare|mooshare|primeshare|played|vidstream|bitshare|www.sockshare|www.putlocker|xvidstage|filenuke|nowvideo).+?)"', re.S).findall(link)
		if match:
			print "elinfo ############ VIDEOLINKS match", match
			#partcounter=1
			for url,hoster in match:
				if main.resolvable(url):
					#print "VIDEOLINKS final ########url",cdname, url, thumb
					try:
							main.addHDir(name,url,'resolve',thumb)
					except:
							continue
Beispiel #36
0
def VIDEOLINKS(url,name,thumb):
        link = net.http_GET(url).content
        match=re.compile('<input type=button value="(.+?)" onClick="javascript:popUp((.+?))">').findall(link)
        for host, url,url2 in match:
                url = base_url + url
                url = re.sub("[')(]", '', url)
                link = net.http_GET(url).content
                links2=re.compile('<frameset  cols=".+?">\n  <frame src="(.+?)" />\n  <frame src=".+?" />').findall(link)
                if len(links2) > 0:
                        url = str(links2[0])
                if main.resolvable(url):
                        hthumb = main.GETHOSTTHUMB(main.getHost(url))
                try:
                        main.addHDir(name,url,'resolve',thumb,hthumb)
                except:
                        continue
Beispiel #37
0
def VIDEOLINKS(name, url, thumb):
    inc = 0
    link = net.http_GET(url).content
    match = re.compile('<td class="sideleft"><a href="(.+?)"').findall(link)
    print "eliinfo VIDEOLINKS############ match1", match[0]
    for url in match:
        if inc < 50:
            link = net.http_GET(url).content
            urls = re.compile(
                '<iframe name="frame" class="frame" src="(.+?)"').findall(link)
            if main.resolvable(urls[0]):
                try:
                    print "eliinfo VIDEOLINKS final ########url", urls[0]
                    main.addHDir(name, str(urls[0]), 'resolve', '')
                    inc += 1
                except:
                    continue
Beispiel #38
0
def VIDEOLINKS(name,url,thumb):
        req = urllib2.Request(url)
        req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
        response = urllib2.urlopen(req)
        link=response.read()
        response.close()
        match=re.compile('<a\nhref="(.+?)" class="ext-link"').findall(link)
        for url in match:
                head,sep,tail = url.partition('=')
                hmf = urlresolver.HostedMediaFile(tail)
                if hmf:
                        host = hmf.get_host()
                        hthumb = main.GETHOSTTHUMB(host)
                        try:
                                main.addHDir(name,tail,'resolve',thumb,hthumb)
                        except:
                                continue
Beispiel #39
0
def VIDEOLINKS(name,url,thumb):
        link = net.http_GET(url).content
        match=re.compile('href="/movies/ext/(.+?)"').findall(link)
        for num in match:
                url = base_url + '/movies/ext/' + num
                req = urllib2.Request(url)
                req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
                response = urllib2.urlopen(req)
                link=response.read()
                response.close()
                url = response.geturl()

                if url:
                        if main.resolvable(url):
                                try:
                                        main.addHDir(name,url,'resolve','')
                                except:
                                        continue
Beispiel #40
0
def VIDEOLINKS(name,url,thumb):
        inc = 0
        link = net.http_GET(url).content
        match=re.compile('<td class="sideleft"><a href="(.+?)"').findall(link)
        for url in match:
                if inc < 50:
                        link = net.http_GET(url).content
                        urls=re.compile('<iframe name="frame" class="frame" src="(.+?)"').findall(link)

                        hmf = urlresolver.HostedMediaFile(urls[0])
                        if hmf:
                                host = hmf.get_host()
                                hthumb = main.GETHOSTTHUMB(host)
                                try:
                                        main.addHDir(name,str(urls[0]),'resolve',thumb,hthumb)
                                        inc +=1
                                except:
                                        continue
Beispiel #41
0
def SERIESLINKS(name, dataPost, thumb):
    if dataPost:
        streamcounter = 0
        newList = []
        dataPostdic = eval(dataPost)
        link = net.http_POST(base_url + '/engine/ajax/a.sseries.php',
                             dataPostdic).content
        match = re.compile('(http[s]?:\\\/\\\/(.+?)\\\/.+?)[#|"]',
                           re.S).findall(link)
        if match:
            for url, hoster in match:
                link = str(url).replace('&#038;',
                                        '&').replace('&amp;',
                                                     '&').replace('\/', '/')
                if main.resolvable(link):
                    try:
                        main.addHDir(name, link, 'resolve', thumb)
                    except:
                        continue
Beispiel #42
0
def VIDEOLINKS(name, url, thumb):
    req = urllib2.Request(url)
    req.add_header(
        "User-Agent", "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3"
    )
    response = urllib2.urlopen(req)
    link = response.read()
    response.close()
    match = re.compile('<a target="_blank" href="(.+?)">.+?</a>').findall(link)
    for url in match:

        hmf = urlresolver.HostedMediaFile(url)
        if hmf:
            host = hmf.get_host()
            hthumb = main.GETHOSTTHUMB(host)
            try:
                main.addHDir(name, url, "resolve", thumb, hthumb)
            except:
                continue
Beispiel #43
0
def VIDEOLINKS(name, url):
    req = urllib2.Request(url)
    req.add_header(
        'User-Agent',
        'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3'
    )
    response = urllib2.urlopen(req)
    link = response.read()
    response.close()
    match = re.compile(
        '<p><a href="(.+?)" rel="nofollow">.+?</a></p>').findall(link)
    for url in match:
        hmf = urlresolver.HostedMediaFile(url)
        hthumb = main.GETHOSTTHUMB(hmf.get_host())
        if hmf:
            try:
                main.addHDir(name, url, 'resolve', '', hthumb)
            except:
                continue
Beispiel #44
0
def VIDEOLINKS(url, name, thumb):
    link = net.http_GET(url).content
    match = re.compile(
        '<input type=button value="(.+?)" onClick="javascript:popUp((.+?))">'
    ).findall(link)
    for host, url, url2 in match:
        url = base_url + url
        url = re.sub("[')(]", '', url)
        link = net.http_GET(url).content
        links2 = re.compile(
            '<frameset  cols=".+?">\n  <frame src="(.+?)" />\n  <frame src=".+?" />'
        ).findall(link)
        if len(links2) > 0:
            url = str(links2[0])
        if main.resolvable(url):
            hthumb = main.GETHOSTTHUMB(main.getHost(url))
        try:
            main.addHDir(name, url, 'resolve', thumb, hthumb)
        except:
            continue
Beispiel #45
0
def VIDEOLINKS(name,url,thumb):
        req = urllib2.Request(url)
        req.add_header('User-Agent', 'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3')
        response = urllib2.urlopen(req)
        link=response.read()
        response.close()
        match=re.compile('<a href="(.+?)" target="_blank">').findall(link)
        for url in match:
                if 'vidx.to' in url:
                        main.addHDir(name,url,'resolve',thumb,artwork + 'hosts/vidx.png')
                        
                else:
                        hmf = urlresolver.HostedMediaFile(url)
                        if hmf:
                                host = hmf.get_host()
                                hthumb = main.GETHOSTTHUMB(host)
                                try:
                                        main.addHDir(name,url,'resolve',thumb,hthumb)
                                except:
                                        continue
Beispiel #46
0
def VIDEOLINKS(name,url,thumb):
        streamcounter = 0
        newList =[]
        link = net.http_GET(url).content
        match=re.compile('class="itemFullText">(.+?)id="content_right"', re.S).findall(link)
        match1=re.compile('(http[s]?://(.*?)\/.*?)[\'|"|\&|<]').findall(match[0])
        for url,hoster in match1:
            url = str(url).replace('&#038;','&').replace('&amp;','&')
            if main.resolvable(url):
                #hmf = urlresolver.HostedMediaFile(url)
                streamcounter += 1
                newList.append((name, url, hoster,'resolve',thumb))
        if streamcounter == 1:
            main.RESOLVE(newList[0][0],newList[0][1],newList[0][3])
        elif newList:
            for name,url, hoster, resolve,thumb in newList:
                try:
                    main.addHDir(name,url,resolve,thumb)
                except:
                    pass
Beispiel #47
0
def VIDEOLINKS(name, url, thumb):
    req = urllib2.Request(url)
    req.add_header(
        'User-Agent',
        'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3'
    )
    response = urllib2.urlopen(req)
    link = response.read()
    response.close()
    match = re.compile('<a\nhref="(.+?)" class="ext-link"').findall(link)
    for url in match:
        head, sep, tail = url.partition('=')
        hmf = urlresolver.HostedMediaFile(tail)
        if hmf:
            host = hmf.get_host()
            hthumb = main.GETHOSTTHUMB(host)
            try:
                main.addHDir(name, tail, 'resolve', thumb, hthumb)
            except:
                continue
Beispiel #48
0
def VIDEOLINKS(name, url, thumb):
    link = net.http_GET(url).content
    match = re.compile('href="/movies/ext/(.+?)"').findall(link)
    for num in match:
        url = base_url + '/movies/ext/' + num
        req = urllib2.Request(url)
        req.add_header(
            'User-Agent',
            'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3'
        )
        response = urllib2.urlopen(req)
        link = response.read()
        response.close()
        url = response.geturl()

        if url:
            if main.resolvable(url):
                try:
                    main.addHDir(name, url, 'resolve', '')
                except:
                    continue
Beispiel #49
0
def VIDEOLINKS(url, name, thumb):
    link = net.http_GET(url).content
    match = re.compile(
        '<a target="_blank" id="hovered" href="(.+?)">.+?</a>').findall(link)
    for url in match:
        if 'fanstash' in url:
            continue
        else:

            try:
                links = net.http_GET(url).content
                reallink = re.compile(
                    "href='(.+?)'>Click Here to Play</a>").findall(links)
                if len(reallink) > 0:
                    if main.resolvable(str(reallink[0])):
                        file_link = reallink[0]
                        try:
                            main.addHDir(name, file_link, 'resolve', '')
                        except:
                            continue
            except:
                continue
Beispiel #50
0
def VIDEOLINKS(name, url, thumb):
    req = urllib2.Request(url)
    req.add_header(
        'User-Agent',
        'Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3'
    )
    response = urllib2.urlopen(req)
    link = response.read()
    response.close()
    match = re.compile('<a href="(.+?)" target="_blank">').findall(link)
    for url in match:
        if 'vidx.to' in url:
            main.addHDir(name, url, 'resolve', thumb,
                         artwork + 'hosts/vidx.png')

        else:
            hmf = urlresolver.HostedMediaFile(url)
            if hmf:
                host = hmf.get_host()
                hthumb = main.GETHOSTTHUMB(host)
                try:
                    main.addHDir(name, url, 'resolve', thumb, hthumb)
                except:
                    continue