add OriginalTitle to metadata editor
This commit is contained in:
parent
ace1ad778e
commit
992ca4c78a
|
@ -247,6 +247,12 @@ namespace MediaBrowser.Api
|
|||
hasBudget.Revenue = request.Revenue;
|
||||
}
|
||||
|
||||
var hasOriginalTitle = item as IHasOriginalTitle;
|
||||
if (hasOriginalTitle != null)
|
||||
{
|
||||
hasOriginalTitle.OriginalTitle = hasOriginalTitle.OriginalTitle;
|
||||
}
|
||||
|
||||
var hasCriticRating = item as IHasCriticRating;
|
||||
if (hasCriticRating != null)
|
||||
{
|
||||
|
|
|
@ -125,6 +125,8 @@ namespace MediaBrowser.Controller.Entities
|
|||
}
|
||||
}
|
||||
|
||||
public string OriginalTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the id.
|
||||
/// </summary>
|
||||
|
|
|
@ -18,8 +18,6 @@ namespace MediaBrowser.Controller.Entities.Movies
|
|||
{
|
||||
public List<Guid> SpecialFeatureIds { get; set; }
|
||||
|
||||
public string OriginalTitle { get; set; }
|
||||
|
||||
public List<Guid> ThemeSongIds { get; set; }
|
||||
public List<Guid> ThemeVideoIds { get; set; }
|
||||
public List<string> ProductionLocations { get; set; }
|
||||
|
|
|
@ -19,8 +19,6 @@ namespace MediaBrowser.Controller.Entities.TV
|
|||
{
|
||||
public List<Guid> SpecialFeatureIds { get; set; }
|
||||
|
||||
public string OriginalTitle { get; set; }
|
||||
|
||||
public int? AnimeSeriesIndex { get; set; }
|
||||
|
||||
public Series()
|
||||
|
|
|
@ -11,7 +11,7 @@ namespace MediaBrowser.Controller.Entities
|
|||
/// <summary>
|
||||
/// Class Trailer
|
||||
/// </summary>
|
||||
public class Trailer : Video, IHasCriticRating, IHasProductionLocations, IHasBudget, IHasKeywords, IHasTaglines, IHasMetascore, IHasLookupInfo<TrailerInfo>
|
||||
public class Trailer : Video, IHasCriticRating, IHasProductionLocations, IHasBudget, IHasKeywords, IHasTaglines, IHasMetascore, IHasOriginalTitle, IHasLookupInfo<TrailerInfo>
|
||||
{
|
||||
public List<string> ProductionLocations { get; set; }
|
||||
|
||||
|
|
|
@ -26,6 +26,8 @@ namespace MediaBrowser.Model.Dto
|
|||
/// <value>The name.</value>
|
||||
public string Name { get; set; }
|
||||
|
||||
public string OriginalTitle { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the server identifier.
|
||||
/// </summary>
|
||||
|
|
|
@ -130,6 +130,8 @@
|
|||
/// </summary>
|
||||
Metascore,
|
||||
|
||||
OriginalTitle,
|
||||
|
||||
/// <summary>
|
||||
/// The item overview
|
||||
/// </summary>
|
||||
|
|
|
@ -40,6 +40,15 @@ namespace MediaBrowser.Providers.Manager
|
|||
}
|
||||
}
|
||||
|
||||
if (replaceData || string.IsNullOrEmpty(target.OriginalTitle))
|
||||
{
|
||||
// Safeguard against incoming data having an emtpy name
|
||||
if (!string.IsNullOrWhiteSpace(source.OriginalTitle))
|
||||
{
|
||||
target.OriginalTitle = source.OriginalTitle;
|
||||
}
|
||||
}
|
||||
|
||||
if (replaceData || !target.CommunityRating.HasValue)
|
||||
{
|
||||
target.CommunityRating = source.CommunityRating;
|
||||
|
|
|
@ -1126,6 +1126,11 @@ namespace MediaBrowser.Server.Implementations.Dto
|
|||
dto.Overview = item.Overview;
|
||||
}
|
||||
|
||||
if (fields.Contains(ItemFields.OriginalTitle))
|
||||
{
|
||||
dto.OriginalTitle = item.OriginalTitle;
|
||||
}
|
||||
|
||||
if (fields.Contains(ItemFields.ShortOverview))
|
||||
{
|
||||
var hasShortOverview = item as IHasShortOverview;
|
||||
|
|
Loading…
Reference in New Issue
Block a user