mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 03:26:07 +02:00
41 lines
1 KiB
C#
41 lines
1 KiB
C#
using MediaBrowser.Controller.Providers;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace MediaBrowser.Controller.Entities
|
|
{
|
|
[Obsolete]
|
|
public class AdultVideo : Video, IHasProductionLocations, IHasTaglines
|
|
{
|
|
public List<string> ProductionLocations { get; set; }
|
|
|
|
public List<string> Taglines { get; set; }
|
|
|
|
public AdultVideo()
|
|
{
|
|
Taglines = new List<string>();
|
|
ProductionLocations = new List<string>();
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|
|
}
|