def getLink(self, movie): movieurl = '%s%s' % (self.domain, movie['link']) response = self.request.get(movieurl) fid, epid = Movie().get_movie_id(response) url = '%s/films/%s/episodes/%s/true' % (self.api, fid, epid) response = self.request.get(url, headers={ 'referer': movieurl, 'authority': 'fimfast.com', 'x-requested-with': 'XMLHttpRequest', }) return Movie().get_link(response, movieurl)
def getLink(self, movie): movieurl = '%s%s' % (self.domain, movie['link']) response = self.request.get(movieurl) fid, epid = Movie().get_movie_id(response) url = '%s/films/%s/episodes/%s' % (self.api, fid, epid) response = self.request.get(url, headers={ 'referer': movieurl, 'x-requested-with': 'XMLHttpRequest', 'cookie': 'phim1080zz=%3D' }) return Movie().get_link(response, self.domain, movieurl)
def getLink(self, movie): episode_slug, server_id, post_id = movie.get('link').split(',') response = self.request.get(self.api, headers={ 'x-requested-with': 'XMLHttpRequest', }, params={ 'episode_slug': episode_slug, 'server_id': server_id, 'post_id': post_id }) return Movie().get_link(response)
def getMovie(self, id): movieurl = '%s%s' % (self.domain, id) response = self.request.get(movieurl) fid, epid = Movie().get_movie_id(response) url = '%s/films/%s/episodes?sort=name' % (self.api, fid) response = self.request.get(url, headers={ 'referer': movieurl, 'authority': 'fimfast.com', 'x-requested-with': 'XMLHttpRequest', }) response = json.loads(response) url = '%s/films/%s/episodes?sort=name' % (self.api, fid) if 'ova' in response: url += '&ova=true' response = self.request.get(url, headers={ 'referer': movieurl, 'authority': 'fimfast.com', 'x-requested-with': 'XMLHttpRequest', }) return Movie().get(response, fid)
def getMovie(self, id): id = id.replace(self.domain, "") movieurl = '%s%s' % (self.domain, id) response = self.request.get(movieurl) return Movie().get(response)