Exemple #1
0
    def getTorrentUrl(self,Id,quality):
        param = dict({"movie_id":str(Id)})

        url = self.details+urlencode(param)
        response=requests.get(url)
        movie = Movie.Movie(response)
        return movie.Torrent(quality)
Exemple #2
0
    def find(self,query):
        param = dict({"query_term":str(query)})
        url = self.query+urlencode(param)
        response=requests.get(url)
        movie = Movie.Movie(response)

        return movie.getRecents()
Exemple #3
0
    def getTrailerUrl(self,Id):
        param = dict({"movie_id":str(Id)})

        url = self.details+urlencode(param)
        response=requests.get(url)
        movie = Movie.Movie(response)
        return str(movie.getTrailerUrl())
Exemple #4
0
    def getQualities(self,Id):
        param = dict({"movie_id":str(Id)})

        url = self.details+urlencode(param)

        response=requests.get(url)
        movie = Movie.Movie(response)

        return movie.getQualities()
Exemple #5
0
    def byRating(self,limit=20,page=1,min_rating=0):
        param = dict({"limit":limit})
        param["page"]=page
        param["minimum_rating"]=min_rating
        param["sort_by"]="rating"
        response=requests.get(self.query+urlencode(param))

        movie = Movie.Movie(response)
        return movie.getRecents()