소스 검색

Add collection id

Eric Reed 12 년 전
부모
커밋
bee343c7b3
3개의 변경된 파일11개의 추가작업 그리고 4개의 파일을 삭제
  1. 6 0
      MediaBrowser.Controller/Providers/Movies/MovieDbProvider.cs
  2. 5 1
      MediaBrowser.Model/Entities/MetadataProviders.cs
  3. 0 3
      MediaBrowser.sln

+ 6 - 0
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

+ 5 - 1
MediaBrowser.Model/Entities/MetadataProviders.cs

@@ -29,6 +29,10 @@ namespace MediaBrowser.Model.Entities
         /// <summary>
         /// The rotten tomatoes
         /// </summary>
-        RottenTomatoes
+        RottenTomatoes,
+        /// <summary>
+        /// Tmdb Collection Id
+        /// </summary>
+        TmdbCollection
     }
 }

+ 0 - 3
MediaBrowser.sln

@@ -173,7 +173,4 @@ Global
 	GlobalSection(SolutionProperties) = preSolution
 		HideSolutionNode = FALSE
 	EndGlobalSection
-	GlobalSection(Performance) = preSolution
-		HasPerformanceSessions = true
-	EndGlobalSection
 EndGlobal