def sources(self, url, hostDict, hostprDict): try: sources = [] if url == 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 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 == None: return sources hostDict = hostprDict + hostDict r = self.session.get(url, headers=self.headers).content match = getSum.findSum(r) for url in match: if "api.hdv.fun" in url: r2 = self.session.get(url, headers=self.headers).content match2 = getSum.findEm( r2, '<source src= "(.+?)" type="(.+?)" .+? label="(.+?)"') if match2: for url2, inf, qua in match2: quainf = '%s - %s' % (inf, qua) quality, info = source_utils.get_release_quality( quainf, quainf) valid, host = source_utils.is_host_valid( url2, hostDict) sources.append({ 'source': host, 'quality': quality, 'language': 'en', 'url': url2, 'info': info, '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 page = getSum.get(url) match = getSum.findEm( page, '<a class="linkdomx w3-button w3-blue w3-center" rel="nofollow" title="(.+?)" target="_blank" href="(.+?)"' ) if match: for hoster, url in match: url = self.base_link + url valid, host = source_utils.is_host_valid(hoster, hostDict) if valid: sources.append({ 'source': host, 'quality': 'SD', 'language': 'en', 'url': url, 'direct': False, 'debridonly': False }) return sources except: return sources
def resolve(self, url): try: get = getSum.get(url) url = getSum.findEm(get, '<a target="_blank" href="(.+?)"')[0] url = self.base_link + url url = getSum.get(url, Type='redirect') return url except: return url
def resolve(self, url): try: page2 = getSum.get(url) match2 = getSum.findEm(page2, '<p><a target="_blank" rel="external nofollow" href="/open/site/(.+?)"') if match2: for link in match2: link = self.base_link + "/open/site/" + link url = getSum.get(link, Type='redirect') return url except: return
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): try: page2 = getSum.get(url) match2 = getSum.findEm( page2, 'class="mybutton vidlink button-link" target="_blank" href="/open/site/(.+?)"' ) if match2: for link in match2: link = self.base_link + "/open/site/" + link url = getSum.get(link, Type='redirect') return url except: return