Exemple #1
0
    def episode(self, url, imdb, tvdb, title, premiered, season, episode):
        self.elysium_url = []
        try:

            data = urlparse.parse_qs(url)
            data = dict([(i, data[i][0]) if data[i] else (i, '')
                         for i in data])
            title = data['tvshowtitle'] if 'tvshowtitle' in data else data[
                'title']
            data['season'], data['episode'] = season, episode
            self.elysium_url = []
            title = cleantitle.getsearch(title)
            title = title.replace(' ', '-')
            query = title + "-" + season + "x" + episode
            query = self.ep_link % query
            query = urlparse.urljoin(self.base_link, query)
            r = OPEN_CF(query)
            # print("BLACKCINEMA r ", r)
            r = BeautifulSoup(r.content)
            # print("BLACKCINEMA BeautifulSoup ", r)
            r = r.findAll('iframe')
            # print ("ANIMETOON s1",  r)
            for u in r:
                u = u['src'].encode('utf-8')
                if u.startswith("//"): u = "http:" + u
                print("BLACKCINEMA PASSED ", u)
                self.elysium_url.append(u)
            return self.elysium_url
        except:
            return
	def episode(self, url, imdb, tvdb, title, premiered, season, episode):
		self.zen_url = []
		try:
			
			data = urlparse.parse_qs(url)
			data = dict([(i, data[i][0]) if data[i] else (i, '') for i in data])
			title = data['tvshowtitle'] if 'tvshowtitle' in data else data['title']
			data['season'], data['episode'] = season, episode
			self.zen_url = []
			title = cleantitle.getsearch(title)
			title = title.replace(' ','-')
			query = title + "-" + season + "x" + episode
			query= self.ep_link % query
			query = urlparse.urljoin(self.base_link, query)
			r = OPEN_CF(query)
			# print("BLACKCINEMA r ", r)
			r = BeautifulSoup(r.content)
			# print("BLACKCINEMA BeautifulSoup ", r)
			r = r.findAll('iframe')
            # print ("ANIMETOON s1",  r)
			for u in r:
				u = u['src'].encode('utf-8')
				if u.startswith("//"): u = "http:" + u
				print("BLACKCINEMA PASSED ", u)
				self.zen_url.append(u)
			return self.zen_url
		except:
			return
Exemple #3
0
    def sources(self, url, hostDict, hostprDict):
        sources = []
        try:

            for url in self.elysium_url:
                if url == None: return

                r = OPEN_CF(url).content

                match = re.compile('file"?:\s*"([^"]+)"').findall(r)
                for href in match:
                    quality = google_tag(href)
                    href = href.encode('utf-8')
                    sources.append({
                        'source': 'gvideo',
                        'quality': quality,
                        'provider': 'Bcinema',
                        'url': href,
                        'direct': True,
                        'debridonly': False
                    })

            return sources
        except:
            return sources
Exemple #4
0
    def movie(self, imdb, title, year):
        self.elysium_url = []
        try:
            url = self.base_link

            title = cleantitle.getsearch(title)
            title = title.replace(' ', '-')
            query = self.movie_link % title
            query = urlparse.urljoin(self.base_link, query)
            r = OPEN_CF(query)
            # print("BLACKCINEMA r ", r)
            r = BeautifulSoup(r.content)
            # print("BLACKCINEMA BeautifulSoup ", r)
            r = r.findAll('iframe')
            # print ("ANIMETOON s1",  r)
            for u in r:
                u = u['src'].encode('utf-8')
                if u.startswith("//"): u = "http:" + u
                print("BLACKCINEMA PASSED", u)
                self.elysium_url.append(u)
            return self.elysium_url.append(u)
        except:
            return
	def movie(self, imdb, title, year):
		self.zen_url = []
		try:
			url = self.base_link
			
			
			title = cleantitle.getsearch(title)
			title = title.replace(' ','-')
			query = self.movie_link % title
			query = urlparse.urljoin(self.base_link, query)
			r = OPEN_CF(query)
			# print("BLACKCINEMA r ", r)
			r = BeautifulSoup(r.content)
			# print("BLACKCINEMA BeautifulSoup ", r)
			r = r.findAll('iframe')
            # print ("ANIMETOON s1",  r)
			for u in r:
				u = u['src'].encode('utf-8')
				if u.startswith("//"): u = "http:" + u
				print("BLACKCINEMA PASSED", u)
				self.zen_url.append(u)
			return self.zen_url.append(u)
		except:
			return