From b1b4e77178922249b6e523e11110c76472c57bf1 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 7 Aug 2013 11:59:13 -0400 Subject: [PATCH] reduced property virtualization --- .../Entities/Audio/MusicAlbum.cs | 54 -------- MediaBrowser.Controller/Entities/BaseItem.cs | 8 +- .../Resolvers/EntityResolutionHelper.cs | 31 +++-- .../MediaBrowser.Providers.csproj | 1 + .../Music/AlbumInfoFromSongProvider.cs | 126 ++++++++++++++++++ 5 files changed, 148 insertions(+), 72 deletions(-) create mode 100644 MediaBrowser.Providers/Music/AlbumInfoFromSongProvider.cs 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 @@ -54,24 +54,6 @@ namespace MediaBrowser.Controller.Entities.Audio get { return Parent as MusicArtist ?? UnknwonArtist; } } - /// - /// Override to point to first child (song) - /// - /// The production year. - public override int? ProductionYear - { - get - { - var child = Children.FirstOrDefault(); - - return child == null ? base.ProductionYear : child.ProductionYear; - } - set - { - base.ProductionYear = value; - } - } - /// /// Override to point to first child (song) /// @@ -92,24 +74,6 @@ namespace MediaBrowser.Controller.Entities.Audio } } - /// - /// Override to point to first child (song) - /// - /// The studios. - public override List Studios - { - get - { - var child = Children.FirstOrDefault(); - - return child == null ? base.Studios : child.Studios; - } - set - { - base.Studios = value; - } - } - /// /// Gets or sets the images. /// @@ -149,24 +113,6 @@ namespace MediaBrowser.Controller.Entities.Audio return RecursiveChildren.OfType