From bee343c7b3e942b320a72615bbe55609f920e58d Mon Sep 17 00:00:00 2001 From: Eric Reed Date: Mon, 6 May 2013 23:20:51 -0400 Subject: [PATCH] Add collection id --- MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs | 6 ++++++ MediaBrowser.Model/Entities/MetadataProviders.cs | 6 +++++- MediaBrowser.sln | 3 --- 3 files changed, 11 insertions(+), 4 deletions(-) diff --git a/MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs b/MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs index dbeba42d92..b2a556e3d2 100644 --- a/MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs +++ b/MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs @@ -916,6 +916,12 @@ namespace MediaBrowser.Controller.Providers.Movies } movie.SetProviderId(MetadataProviders.Imdb, movieData.imdb_id); + + if (movieData.belongs_to_collection != null) + { + movie.SetProviderId(MetadataProviders.TmdbCollection, movieData.belongs_to_collection.id.ToString(CultureInfo.InvariantCulture)); + } + float rating; string voteAvg = movieData.vote_average.ToString(CultureInfo.InvariantCulture); //tmdb appears to have unified their numbers to always report "7.3" regardless of country diff --git a/MediaBrowser.Model/Entities/MetadataProviders.cs b/MediaBrowser.Model/Entities/MetadataProviders.cs index 15648604fd..3c7b2ff019 100644 --- a/MediaBrowser.Model/Entities/MetadataProviders.cs +++ b/MediaBrowser.Model/Entities/MetadataProviders.cs @@ -29,6 +29,10 @@ namespace MediaBrowser.Model.Entities /// /// The rotten tomatoes /// - RottenTomatoes + RottenTomatoes, + /// + /// Tmdb Collection Id + /// + TmdbCollection } } diff --git a/MediaBrowser.sln b/MediaBrowser.sln index eb3251f741..f9f5e94365 100644 --- a/MediaBrowser.sln +++ b/MediaBrowser.sln @@ -173,7 +173,4 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection - GlobalSection(Performance) = preSolution - HasPerformanceSessions = true - EndGlobalSection EndGlobal