示例#1
0
        public FileContentResult Get(int page, string quality = "720p")
        {
            YtsQuality parsedQuality = Enum <YtsQuality> .TryParseByDescription(quality);

            var result = _ytsService.Get(page, parsedQuality).Result;

            return(ToFeed(result));
        }
示例#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);
        }