Ejemplo n.º 1
0
        public async Task <EzTvResponse> Get(string imdbId, int page = 1, int limit = 20)
        {
            string path = $"/api/get-torrents?limit={limit}&page={page}";

            if (!string.IsNullOrEmpty(imdbId))
            {
                path = $"{path}&imdb_id={imdbId}";
            }

            var response = await _client.Get <EzTvResponse>(path);

            return(response);
        }
Ejemplo n.º 2
0
        public async Task <YtsResponse <YtsMovies> > Get(int page, YtsQuality quality = YtsQuality.Low)
        {
            var response = await _client.Get <YtsResponse <YtsMovies> >($"/api/v2/list_movies.json?quality={quality.GetDescription()}&page={page}&sort_by=date_added");

            return(response);
        }