def sources(self, url, hostDict, hostprDict): try: if url is None: return sources sources = [] hostDict = hostprDict + hostDict r = getSum.get(url) match = getSum.findSum(r) for url in match: if 'vidcloud' in url: result = getSum.get(url) match = getSum.findSum(result) for link in match: link = "https:" + link if not link.startswith('http') else link link = requests.get(link).url if 'vidnode' in link else link valid, host = source_utils.is_host_valid(link, hostDict) if valid: quality, info = source_utils.get_release_quality(link, link) sources.append( {'source': host, 'quality': quality, 'language': 'en', 'info': info, 'url': link, 'direct': False, 'debridonly': False}) else: valid, host = source_utils.is_host_valid(url, hostDict) if valid: quality, info = source_utils.get_release_quality(url, url) sources.append({'source': host, 'quality': quality, 'language': 'en', 'info': info, 'url': url, 'direct': False, 'debridonly': False}) return sources except: return sources
def sources(self, url, hostDict, hostprDict): try: sources = [] if url is None: return sources hostDict = hostDict + hostprDict moviePage = getSum.get(url) results = getSum.findEm( moviePage, '<td class="entry2" valign="middle">.+?<a href="(.+?)" target="_blank"' ) if results: for url in results: valid, host = source_utils.is_host_valid(url, hostDict) if valid: quality, info = source_utils.get_release_quality( url, url) sources.append({ 'source': host, 'quality': quality, 'language': 'en', 'url': url, 'info': info, 'direct': False, 'debridonly': False }) return sources except: return sources
def resolve(self, url): if "google" in url: return directstream.googlepass(url) elif 'vidcloud' in url: r = getSum.get(url) url = re.findall("file: '(.+?)'", r)[0] return url else: return url
def sources(self, url, hostDict, hostprDict): try: sources = [] if url is None: return sources hostDict = hostprDict + hostDict r = getSum.get(url, Type='cfscrape') qual = getSum.findThat(r, 'class="quality">(.+?)<')[0] quality, info = source_utils.get_release_quality(qual, qual) match = getSum.findSum(r) for url in match: if 'vidcloud' in url: r = getSum.get(url, Type='cfscrape') match = getSum.findSum(r) for url in match: valid, host = source_utils.is_host_valid(url, hostDict) if valid: sources.append({ 'source': host, 'quality': quality, 'language': 'en', 'info': info, 'url': url, 'direct': False, 'debridonly': False }) else: valid, host = source_utils.is_host_valid(url, hostDict) if valid: sources.append({ 'source': host, 'quality': quality, 'language': 'en', 'info': info, 'url': url, 'direct': False, 'debridonly': False }) return sources except: source_utils.scraper_error('YESMOVIESGG') return sources
def movie(self, imdb, title, localtitle, aliases, year): try: mtitle = cleantitle.geturl(title).replace('-', '+') theurl = self.base_link + self.search_link % mtitle searchPage = getSum.get(theurl) results = getSum.findEm(searchPage, '<a href="https://putlockersonline.top/watch(.+?)" title="(.+?)"><b>') if results: for url, checkit in results: url = "https://putlockersonline.top/watch" + url zcheck = '%s (%s)' % (title, year) if zcheck in checkit: return url except: return
def resolve(self, url): if 'api.vidnode.net' in url: url = getSum.get(url, Type='redirect') return url