Exemplo n.º 1
0
        /// <summary>
        /// Gets the backdrops.
        /// </summary>
        /// <param name="images">The images.</param>
        /// <returns>IEnumerable{MovieDbProvider.Backdrop}.</returns>
        private IEnumerable <MovieDbProvider.Backdrop> GetBackdrops(MovieDbProvider.Images images)
        {
            var eligibleBackdrops = images.backdrops == null ? new List <MovieDbProvider.Backdrop>() :
                                    images.backdrops;

            return(eligibleBackdrops.OrderByDescending(i => i.vote_average)
                   .ThenByDescending(i => i.vote_count));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Gets the posters.
 /// </summary>
 /// <param name="images">The images.</param>
 /// <returns>IEnumerable{MovieDbProvider.Poster}.</returns>
 private IEnumerable <MovieDbProvider.Poster> GetPosters(MovieDbProvider.Images images)
 {
     return(images.posters ?? new List <MovieDbProvider.Poster>());
 }
Exemplo n.º 3
0
        /// <summary>
        /// Gets the posters.
        /// </summary>
        /// <param name="images">The images.</param>
        /// <param name="item">The item.</param>
        /// <returns>IEnumerable{MovieDbProvider.Poster}.</returns>
        private IEnumerable <MovieDbProvider.Poster> GetPosters(MovieDbProvider.Images images, BaseItem item)
        {
            var language = _config.Configuration.PreferredMetadataLanguage;

            return(images.posters ?? new List <MovieDbProvider.Poster>());
        }