예제 #1
0
    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)
예제 #2
0
    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)
예제 #3
0
    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)
예제 #4
0
    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)
예제 #5
0
    def getMovie(self, id):
        id = id.replace(self.domain, "")
        movieurl = '%s%s' % (self.domain, id)
        response = self.request.get(movieurl)

        return Movie().get(response)