mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-15 18:08:53 -07:00
Add collection id
This commit is contained in:
parent
3f433b3b61
commit
bee343c7b3
@ -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
|
||||
|
@ -29,6 +29,10 @@ namespace MediaBrowser.Model.Entities
|
||||
/// <summary>
|
||||
/// The rotten tomatoes
|
||||
/// </summary>
|
||||
RottenTomatoes
|
||||
RottenTomatoes,
|
||||
/// <summary>
|
||||
/// Tmdb Collection Id
|
||||
/// </summary>
|
||||
TmdbCollection
|
||||
}
|
||||
}
|
||||
|
@ -173,7 +173,4 @@ Global
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(Performance) = preSolution
|
||||
HasPerformanceSessions = true
|
||||
EndGlobalSection
|
||||
EndGlobal
|
||||
|
Loading…
Reference in New Issue
Block a user