def sources(self, url, hostDict, hostprDict): try: sources = [] if url == None: return sources hostDict = hostprDict + hostDict page = getSum.get(url) match = getSum.findEm(page, '<td class="linkdom2"><span><a class="btn-xs" rel="nofollow" title="(.+?)" target="_blank" href="(.+?)"') if match: for hoster, url in match: valid, host = source_utils.is_host_valid(hoster, hostDict) if valid: if source_utils.limit_hosts() is True and host in str(sources): continue sources.append({'source': host, 'quality': 'SD', 'language': 'en', '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 = 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 'load.php' not in url: 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: 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 sources(self, url, hostDict, hostprDict): try: sources = [] if url == None: return sources hostDict = hostprDict + hostDict page = getSum.get(url) match = getSum.findEm(page, 'rel="nofollow" target="_blank" href="(.+?)">(.+?)</a>') for url, hoster in match: if 'font14' in hoster: continue url = self.base_link + url valid, host = source_utils.is_host_valid(hoster, hostDict) if source_utils.limit_hosts() is True and host in str(sources): continue if valid: sources.append({'source': host, 'quality': 'SD', 'language': 'en', 'url': url, 'direct': False, 'debridonly': False}) return sources except: return sources
def sources(self, url, hostDict, hostprDict): try: sources = [] if url == None: return sources hostDict = hostprDict + hostDict r = getSum.get(url, Type='cfscrape') match = getSum.findSum(r) for url in match: quality, info = source_utils.get_release_quality(url, url) valid, host = source_utils.is_host_valid(url, hostDict) if valid: 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 'api.vidnode.net' in url: url = getSum.get(url, type='redirect') return url