Ejemplo n.º 1
0
    def GetFileHostsForContent(self, title, name, year, season, episode, type,
                               list, lock, message_queue):

        from entertainment.net import Net

        net = Net(user_agent=self.UA)
        title = self.CleanTextForSearch(title)
        name = self.CleanTextForSearch(name)

        search_term = name.replace(' ', '-') + '-' + year

        import re
        url = 'http://umovies.me/search/' + search_term
        try:
            net.set_cookies(self.cookie_file)
            link = net.http_GET(url).content
            print '##########################'
            print 'NET'

        except:
            from entertainment import cloudflare
            link = cloudflare.solve(url, self.cookie_file, self.UA)

        match = re.compile(
            'lass="movies list inset">.+?href="(.+?)">.+?class="label">(.+?)<',
            re.DOTALL).findall(link)

        for movie_url, TITLE in match:
            if year in TITLE:
                self.GetFileHosts('http://umovies.me' + movie_url, list, lock,
                                  message_queue)
Ejemplo n.º 2
0
    def Resolve(self, url):

        import re
        from entertainment.net import Net
        net = Net(user_agent=self.UA)
        url = url.replace('muchmovies.org', 'umovies.me')
        try:
            net.set_cookies(self.cookie_file)
            content = net.http_GET(url).content
            print '##########################'
            print 'NET'
        except:
            from entertainment import cloudflare
            content = cloudflare.solve(url, self.cookie_file, self.UA)
        content = content.replace('\n', '')

        link = content.split('href=')
        for p in link:

            if '.mp4' in p:
                resolved_media_url = re.compile('"(.+?)"').findall(p)[0]
                host = resolved_media_url.split('//')[1]
                host = host.split('/')[0]
                cookie = open(self.cookie_file).read()
                __cfduid = re.compile('__cfduid=(.+?);').findall(cookie)[0]
                cf_clearance = re.compile('cf_clearance="(.+?)"').findall(
                    cookie)[0]
                COOKIE = '__cfduid=%s; cf_clearance=%s' % (__cfduid,
                                                           cf_clearance)

                resolved_media_url = resolved_media_url + '|User-Agent=' + self.UA + '&Referrer=' + url + '&host=' + host + '&Cookie=' + COOKIE
                print resolved_media_url
        return resolved_media_url
Ejemplo n.º 3
0
    def Resolve(self, url):

        from entertainment.net import Net
        from entertainment import cloudflare
        import re
        #print url

        UA = 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.116 Safari/537.36'
        net = Net(cached=False, user_agent=UA)

        try:
            net.set_cookies(self.cookie_file)
            result = net.http_GET(url).content
            net.save_cookies(self.cookie_file)
        except:
            result = cloudflare.solve(url, self.cookie_file, UA)
        #print result.encode('ascii','ignore')
        stream = re.compile('return\("(.+?)"').findall(result)[0]
        final = stream.split('://')[1]
        host = final.split('/')[0]

        #cf_clearance=re.compile('cf_clearance=(.+?);').findall(open(self.cookie_file).read())[0]
        #cfduid=re.compile('cfduid=(.+?);').findall(open(self.cookie_file).read())[0]

        #AND='|Host=%s&User-Agent=%s&Referrer=%s&Connection=keep-alive&Cookie=cfduid=%s;' %(host,UA,url,cfduid)

        return stream  #+AND
Ejemplo n.º 4
0
    def GetFileHostsForContent(self, title, name, year, season, episode, type, list, lock, message_queue):                 
        import re
        from entertainment.net import Net

        from entertainment import bing
        
        net = Net(cached=False)
        
        title = self.CleanTextForSearch(title) 
        name = self.CleanTextForSearch(name)
        
        search_term = name + ' '+year
        RESULT_TERM = 'Watch %s (%s) Full HD' % (name,year)    
        try:GOOGLED = self.GoogleSearch('theonlinemovies.pro', search_term)
        except:GOOGLED = bing.Search('theonlinemovies.pro', search_term)

       
        uniques =[]
        for result in GOOGLED:
            movie_url= result['url']
            TITLE = result['title']
            if RESULT_TERM.lower() in TITLE.lower():

                if 'full-hd-movie-online' in movie_url:
                    from entertainment import cloudflare            
                    content = cloudflare.solve(movie_url,UA='Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/47.0.2526.111 Safari/537.3')
                              
                    
                    match=re.compile("iframe.php\?ref=(.+?)&").findall(content)
                    
                   
                    for ID in match:
                        

                        self.GetFileHosts('http://videomega.tv/iframe.php?ref='+ID, list, lock, message_queue,'HD')
Ejemplo n.º 5
0
    def Resolve(self, url):
        
        import re        
        from entertainment.net import Net
        net = Net(user_agent=self.UA)
        url=url.replace('muchmovies.org','umovies.me')
        try:
            net.set_cookies(self.cookie_file)
            content = net.http_GET(url).content
            print '##########################'
            print 'NET'
        except:
            from entertainment import cloudflare
            content=cloudflare.solve(url,self.cookie_file,self.UA)
        content = content.replace('\n','')
        
        link=content.split('href=')
        for p in link:

            if '.mp4' in p:
                resolved_media_url = re.compile('"(.+?)"').findall(p)[0]
                host =resolved_media_url.split('//')[1]
                host = host.split('/')[0]
                cookie =open(self.cookie_file).read()
                __cfduid =re.compile('__cfduid=(.+?);').findall(cookie)[0]
                cf_clearance =re.compile('cf_clearance="(.+?)"').findall(cookie)[0]
                COOKIE = '__cfduid=%s; cf_clearance=%s' % (__cfduid,cf_clearance)

                resolved_media_url = resolved_media_url+'|User-Agent='+self.UA+'&Referrer='+url+'&host='+host+'&Cookie='+COOKIE
                print resolved_media_url
        return resolved_media_url
Ejemplo n.º 6
0
    def GetFileHostsForContent(self, title, name, year, season, episode, type, list, lock, message_queue):  
    
        from entertainment.net import Net


        
        net = Net(user_agent=self.UA)        
        title = self.CleanTextForSearch(title) 
        name = self.CleanTextForSearch(name) 
        
        search_term = name.replace(' ','-')+'-'+year
        
        import re
        url='http://umovies.me/search/'+search_term
        try:
            net.set_cookies(self.cookie_file)
            link = net.http_GET(url).content
            print '##########################'
            print 'NET'
            
        except:
            from entertainment import cloudflare            
            link = cloudflare.solve(url,self.cookie_file,self.UA)
 
        match = re.compile('lass="movies list inset">.+?href="(.+?)">.+?class="label">(.+?)<',re.DOTALL).findall(link)

        for movie_url, TITLE in match:
            if year in TITLE:
                self.GetFileHosts('http://umovies.me'+movie_url, list, lock, message_queue)
Ejemplo n.º 7
0
    def GetFileHostsForContent(self, title, name, year, season, episode, type, list, lock, message_queue):                 
        import re
        from entertainment.net import Net
        
        net = Net(cached=False)
        
        title = self.CleanTextForSearch(title) 
        name = self.CleanTextForSearch(name) 
                

        movie_url = self.base_url+'/'+name.lower().replace(' ','-')+'-'+year

        
        try:            
            content = net.http_GET(movie_url).content
        except:
            from entertainment import cloudflare            
            content = cloudflare.solve(movie_url)
                  
        
        match=re.compile("iframe.php\?ref=(.+?)&").findall(content)
        
       
        for ID in match:
            

            self.GetFileHosts('http://videomega.tv/iframe.php?ref='+ID, list, lock, message_queue,'HD')