AdultVideo.cs 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. using MediaBrowser.Controller.Providers;
  2. using System;
  3. using System.Collections.Generic;
  4. namespace MediaBrowser.Controller.Entities
  5. {
  6. [Obsolete]
  7. public class AdultVideo : Video, IHasProductionLocations, IHasTaglines
  8. {
  9. public List<string> ProductionLocations { get; set; }
  10. public List<string> Taglines { get; set; }
  11. public AdultVideo()
  12. {
  13. Taglines = new List<string>();
  14. ProductionLocations = new List<string>();
  15. }
  16. public override bool BeforeMetadataRefresh()
  17. {
  18. var hasChanges = base.BeforeMetadataRefresh();
  19. if (!ProductionYear.HasValue)
  20. {
  21. int? yearInName = null;
  22. string name;
  23. NameParser.ParseName(Name, out name, out yearInName);
  24. if (yearInName.HasValue)
  25. {
  26. ProductionYear = yearInName;
  27. hasChanges = true;
  28. }
  29. }
  30. return hasChanges;
  31. }
  32. }
  33. }