Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
This commit is contained in:
commit
024d4f3a99
|
@ -279,6 +279,11 @@ namespace MediaBrowser.Controller.Dto
|
||||||
dto.HomePageUrl = item.HomePageUrl;
|
dto.HomePageUrl = item.HomePageUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fields.Contains(ItemFields.Tags))
|
||||||
|
{
|
||||||
|
dto.Tags = item.Tags;
|
||||||
|
}
|
||||||
|
|
||||||
if (fields.Contains(ItemFields.ProductionLocations))
|
if (fields.Contains(ItemFields.ProductionLocations))
|
||||||
{
|
{
|
||||||
dto.ProductionLocations = item.ProductionLocations;
|
dto.ProductionLocations = item.ProductionLocations;
|
||||||
|
|
|
@ -916,6 +916,12 @@ namespace MediaBrowser.Controller.Providers.Movies
|
||||||
}
|
}
|
||||||
|
|
||||||
movie.SetProviderId(MetadataProviders.Imdb, movieData.imdb_id);
|
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;
|
float rating;
|
||||||
string voteAvg = movieData.vote_average.ToString(CultureInfo.InvariantCulture);
|
string voteAvg = movieData.vote_average.ToString(CultureInfo.InvariantCulture);
|
||||||
//tmdb appears to have unified their numbers to always report "7.3" regardless of country
|
//tmdb appears to have unified their numbers to always report "7.3" regardless of country
|
||||||
|
@ -933,20 +939,29 @@ namespace MediaBrowser.Controller.Providers.Movies
|
||||||
|
|
||||||
if (ourRelease.release_date > new DateTime(1900, 1, 1))
|
if (ourRelease.release_date > new DateTime(1900, 1, 1))
|
||||||
{
|
{
|
||||||
movie.PremiereDate = ourRelease.release_date.ToUniversalTime();
|
if (ourRelease.release_date.Year != 1)
|
||||||
movie.ProductionYear = ourRelease.release_date.Year;
|
{
|
||||||
|
movie.PremiereDate = ourRelease.release_date.ToUniversalTime();
|
||||||
|
movie.ProductionYear = ourRelease.release_date.Year;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
movie.PremiereDate = usRelease.release_date.ToUniversalTime();
|
if (usRelease.release_date.Year != 1)
|
||||||
movie.ProductionYear = usRelease.release_date.Year;
|
{
|
||||||
|
movie.PremiereDate = usRelease.release_date.ToUniversalTime();
|
||||||
|
movie.ProductionYear = usRelease.release_date.Year;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//no specific country release info at all
|
if (movieData.release_date.Year != 1)
|
||||||
movie.PremiereDate = movieData.release_date.ToUniversalTime();
|
{
|
||||||
movie.ProductionYear = movieData.release_date.Year;
|
//no specific country release info at all
|
||||||
|
movie.PremiereDate = movieData.release_date.ToUniversalTime();
|
||||||
|
movie.ProductionYear = movieData.release_date.Year;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//if that didn't find a rating and we are a boxset, use the one from our first child
|
//if that didn't find a rating and we are a boxset, use the one from our first child
|
||||||
|
@ -960,8 +975,8 @@ namespace MediaBrowser.Controller.Providers.Movies
|
||||||
boxset.OfficialRating = firstChild != null ? firstChild.OfficialRating : null;
|
boxset.OfficialRating = firstChild != null ? firstChild.OfficialRating : null;
|
||||||
}
|
}
|
||||||
|
|
||||||
//if (movie.RunTimeTicks == null && movieData.runtime > 0)
|
if (movie.RunTimeTicks == null && movieData.runtime > 0)
|
||||||
// movie.RunTimeTicks = TimeSpan.FromMinutes(movieData.runtime).Ticks;
|
movie.RunTimeTicks = TimeSpan.FromMinutes(movieData.runtime).Ticks;
|
||||||
|
|
||||||
//studios
|
//studios
|
||||||
if (movieData.production_companies != null)
|
if (movieData.production_companies != null)
|
||||||
|
|
|
@ -276,6 +276,12 @@ namespace MediaBrowser.Model.Dto
|
||||||
/// <value>The index options.</value>
|
/// <value>The index options.</value>
|
||||||
public string[] IndexOptions { get; set; }
|
public string[] IndexOptions { get; set; }
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets or sets the tags.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>The tags.</value>
|
||||||
|
public List<string> Tags { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the primary image aspect ratio.
|
/// Gets or sets the primary image aspect ratio.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -29,6 +29,10 @@ namespace MediaBrowser.Model.Entities
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The rotten tomatoes
|
/// The rotten tomatoes
|
||||||
/// </summary>
|
/// </summary>
|
||||||
RottenTomatoes
|
RottenTomatoes,
|
||||||
|
/// <summary>
|
||||||
|
/// Tmdb Collection Id
|
||||||
|
/// </summary>
|
||||||
|
TmdbCollection
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -131,6 +131,11 @@ namespace MediaBrowser.Model.Querying
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Taglines,
|
Taglines,
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// The tags
|
||||||
|
/// </summary>
|
||||||
|
Tags,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The trailer url of the item
|
/// The trailer url of the item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -173,7 +173,4 @@ Global
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(Performance) = preSolution
|
|
||||||
HasPerformanceSessions = true
|
|
||||||
EndGlobalSection
|
|
||||||
EndGlobal
|
EndGlobal
|
||||||
|
|
Loading…
Reference in New Issue
Block a user