Example #1
0
        private static async Task <List <TraktMovie> > GetPopularMoviesWithImages(int page, int limit)
        {
            var movies = await TraktREST.GetPopularMovies(page, limit);

            foreach (TraktMovie tm in movies)
            {
                if (tm.Images == null)
                {
                    tm.Images = await GetMovieImagesList(tm.Ids.Imdb);
                }
            }
            return(movies);
        }
Example #2
0
        private static async Task <List <TraktMovie> > GetFilteredMoviesWithImages(string filter, int page, int limit)
        {
            var result = await TraktREST.GetFilteredMovies(filter, page, limit);

            List <TraktMovie> movies = new List <TraktMovie>();

            foreach (TraktSearchResult tsr in result)
            {
                if (tsr.Movie.Images == null)
                {
                    tsr.Movie.Images = await GetMovieImagesList(tsr.Movie.Ids.Imdb);
                }
                movies.Add(tsr.Movie);
            }
            return(movies);
        }