aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Entities')
-rw-r--r--MediaBrowser.Controller/Entities/Audio/MusicAlbum.cs54
-rw-r--r--MediaBrowser.Controller/Entities/BaseItem.cs8
2 files changed, 4 insertions, 58 deletions
diff --git a/MediaBrowser.Controller/Entities/Audio/MusicAlbum.cs b/MediaBrowser.Controller/Entities/Audio/MusicAlbum.cs
index 36cf995f5d..485afcaef9 100644
--- a/MediaBrowser.Controller/Entities/Audio/MusicAlbum.cs
+++ b/MediaBrowser.Controller/Entities/Audio/MusicAlbum.cs
@@ -57,24 +57,6 @@ namespace MediaBrowser.Controller.Entities.Audio
/// <summary>
/// Override to point to first child (song)
/// </summary>
- /// <value>The production year.</value>
- public override int? ProductionYear
- {
- get
- {
- var child = Children.FirstOrDefault();
-
- return child == null ? base.ProductionYear : child.ProductionYear;
- }
- set
- {
- base.ProductionYear = value;
- }
- }
-
- /// <summary>
- /// Override to point to first child (song)
- /// </summary>
/// <value>The genres.</value>
public override List<string> Genres
{
@@ -93,24 +75,6 @@ namespace MediaBrowser.Controller.Entities.Audio
}
/// <summary>
- /// Override to point to first child (song)
- /// </summary>
- /// <value>The studios.</value>
- public override List<string> Studios
- {
- get
- {
- var child = Children.FirstOrDefault();
-
- return child == null ? base.Studios : child.Studios;
- }
- set
- {
- base.Studios = value;
- }
- }
-
- /// <summary>
/// Gets or sets the images.
/// </summary>
/// <value>The images.</value>
@@ -150,24 +114,6 @@ namespace MediaBrowser.Controller.Entities.Audio
}
/// <summary>
- /// Gets or sets the name.
- /// </summary>
- /// <value>The name.</value>
- public override string Name
- {
- get
- {
- var song = RecursiveChildren.OfType<Audio>().FirstOrDefault(i => !string.IsNullOrEmpty(i.Album));
-
- return song == null ? base.Name : song.Album;
- }
- set
- {
- base.Name = value;
- }
- }
-
- /// <summary>
/// Gets or sets the music brainz release group id.
/// </summary>
/// <value>The music brainz release group id.</value>
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs
index ab30d9ef73..d8dec46452 100644
--- a/MediaBrowser.Controller/Entities/BaseItem.cs
+++ b/MediaBrowser.Controller/Entities/BaseItem.cs
@@ -532,12 +532,12 @@ namespace MediaBrowser.Controller.Entities
{
get { return Genres; }
}
-
+
/// <summary>
/// Gets or sets the studios.
/// </summary>
/// <value>The studios.</value>
- public virtual List<string> Studios { get; set; }
+ public List<string> Studios { get; set; }
/// <summary>
/// Gets or sets the genres.
@@ -613,7 +613,7 @@ namespace MediaBrowser.Controller.Entities
/// Gets or sets the production year.
/// </summary>
/// <value>The production year.</value>
- public virtual int? ProductionYear { get; set; }
+ public int? ProductionYear { get; set; }
/// <summary>
/// If the item is part of a series, this is it's number in the series.
@@ -1022,7 +1022,7 @@ namespace MediaBrowser.Controller.Entities
{
rating = OfficialRatingForComparison;
}
-
+
if (string.IsNullOrEmpty(rating))
{
return !user.Configuration.BlockNotRated;