Esempio n. 1
0
    def check(self, i):
        try:
            control.log(">>>>>>>>>>>>>>> ONE CHECK  %s" % (i[0]))

            url = client.replaceHTMLCodes(i[0])
            url = url.encode('utf-8')

            host = urlparse.urlparse(url).netloc
            host = host.replace('www.', '').replace('embed.', '')
            host = host.rsplit('.', 1)[0]
            host = host.lower()
            host = client.replaceHTMLCodes(host)
            host = host.encode('utf-8')
            #control.log("##OneClickWatch %s - url %s" % (host, i[0]))
            #if host in i[2]: check = url = resolvers.request(url)

            if host == 'openload': check = openload.check(url)
            elif host == 'uptobox': check = uptobox.check(url)
            elif host == 'cloudzilla': check = cloudzilla.check(url)
            elif host == 'zstream': check = zstream.check(url)
            elif host == 'videomega': check = videomega.check(url)

            else: raise Exception()

            if check == None or check == False: raise Exception()

            self.sources.append({
                'source': host,
                'quality': i[1],
                'provider': 'Oneclickwatch',
                'url': url
            })
        except:
            pass
Esempio n. 2
0
    def check(self, i):
        try:
            control.log(">>>>>>>>>>>>>>> ONE CHECK  %s" % (i[0]))

            url = client.replaceHTMLCodes(i[0])
            url = url.encode('utf-8')

            host = urlparse.urlparse(url).netloc
            host = host.replace('www.', '').replace('embed.', '')
            host = host.rsplit('.', 1)[0]
            host = host.lower()
            host = client.replaceHTMLCodes(host)
            host = host.encode('utf-8')
            #control.log("##OneClickWatch %s - url %s" % (host, i[0]))
            #if host in i[2]: check = url = resolvers.request(url)

            if host == 'openload': check = openload.check(url)
            elif host == 'uptobox': check = uptobox.check(url)
            elif host == 'cloudzilla': check = cloudzilla.check(url)
            elif host == 'zstream': check = zstream.check(url)
            elif host == 'videomega': check = videomega.check(url)

            else: raise Exception()

            if check == None or check == False: raise Exception()

            self.sources.append({'source': host, 'quality': i[1], 'provider': 'Oneclickwatch', 'url': url})
        except:
            pass
    def check(self, i):
        try:

            url = client.replaceHTMLCodes(i['url'])
            url = urlparse.urlparse(url).path

            result = ''
            links = [self.link_1, self.link_2, self.link_3]
            for base_link in links:
                result = client.request(urlparse.urljoin(base_link, url),
                                        headers=self.headers)
                if 'frame' in str(result): break
            # print("Result >>> result",result)
            url = re.compile(
                'class=[\'|\"]*frame.+?src=[\'|\"|\s|\<]*(.+?)[\'|\"|\s|\>]'
            ).findall(result)[0]
            url = client.replaceHTMLCodes(url)
            try:
                url = urlparse.parse_qs(urlparse.urlparse(url).query)['u'][0]
            except:
                pass
            try:
                url = urlparse.parse_qs(urlparse.urlparse(url).query)['url'][0]
            except:
                pass
            #control.log("Result >>> url2 >>>>>>>>>>>>>>>>>>>> %s " % url)
            host = i['source']
            if host == 'openload': check = openload.check(url)
            elif host == 'uptobox': check = uptobox.check(url)
            elif host == 'cloudzilla': check = cloudzilla.check(url)
            elif host == 'zstream': check = zstream.check(url)
            elif host == 'vidspot': check = vidspot.check(url)
            elif host == 'streamin': check = streamin.check(url)
            elif host == 'thevideo': check = thevideo.check(url)
            elif host == 'vodlocker': check = vodlocker.check(url)
            elif host == 'vidto': check = vidto.check(url)
            elif host == 'streamin': check = streamin.check(url)

            else:
                raise Exception()

            if check == None or check == False: raise Exception()
            self.sources.append({
                'source': host,
                'quality': i['quality'],
                'provider': 'Iwatchonline',
                'url': url
            })
            control.log(
                "############IWATCH RESOLVE >>> url3 +++++++++++++++++++++ host:%s url:%s"
                % (host, url))

        except:
            pass
Esempio n. 4
0
    def check(self, i):
        try:

            url = client.replaceHTMLCodes(i['url'])
            url = urlparse.urlparse(url).path

            result = ''
            links = [self.link_1, self.link_2, self.link_3]
            for base_link in links:
                result = client.request(urlparse.urljoin(base_link, url), headers=self.headers)
                if 'frame' in str(result): break
            # print("Result >>> result",result)
            url = re.compile('class=[\'|\"]*frame.+?src=[\'|\"|\s|\<]*(.+?)[\'|\"|\s|\>]').findall(result)[0]
            url = client.replaceHTMLCodes(url)
            try:
                url = urlparse.parse_qs(urlparse.urlparse(url).query)['u'][0]
            except:
                pass
            try:
                url = urlparse.parse_qs(urlparse.urlparse(url).query)['url'][0]
            except:
                pass
            #control.log("Result >>> url2 >>>>>>>>>>>>>>>>>>>> %s " % url)
            host = i['source']
            if host == 'openload': check = openload.check(url)
            elif host == 'uptobox': check = uptobox.check(url)
            elif host == 'cloudzilla': check = cloudzilla.check(url)
            elif host == 'zstream': check = zstream.check(url)
            elif host == 'vidspot': check = vidspot.check(url)
            elif host == 'streamin': check = streamin.check(url)
            elif host == 'thevideo': check = thevideo.check(url)
            elif host == 'vodlocker': check = vodlocker.check(url)
            elif host == 'vidto': check = vidto.check(url)
            elif host == 'streamin': check = streamin.check(url)

            else:
                raise Exception()

            if check == None or check == False: raise Exception()
            self.sources.append({'source': host, 'quality': i['quality'], 'provider': 'Iwatchonline', 'url': url})
            control.log("############IWATCH RESOLVE >>> url3 +++++++++++++++++++++ host:%s url:%s" % (host,url))

        except:
            pass