using MediaBrowser.Controller.Providers;
using System;
using System.Collections.Generic;
namespace MediaBrowser.Controller.Entities
{
[Obsolete]
public class AdultVideo : Video, IHasProductionLocations, IHasPreferredMetadataLanguage, IHasTaglines
{
///
/// Gets or sets the preferred metadata language.
///
/// The preferred metadata language.
public string PreferredMetadataLanguage { get; set; }
///
/// Gets or sets the preferred metadata country code.
///
/// The preferred metadata country code.
public string PreferredMetadataCountryCode { get; set; }
public List ProductionLocations { get; set; }
public List Taglines { get; set; }
public AdultVideo()
{
Taglines = new List();
ProductionLocations = new List();
}
public override bool BeforeMetadataRefresh()
{
var hasChanges = base.BeforeMetadataRefresh();
if (!ProductionYear.HasValue)
{
int? yearInName = null;
string name;
NameParser.ParseName(Name, out name, out yearInName);
if (yearInName.HasValue)
{
ProductionYear = yearInName;
hasChanges = true;
}
}
return hasChanges;
}
}
}