aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/MusicVideo.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2014-10-20 16:23:40 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2014-10-20 16:23:40 -0400
commit1292eccfb57d82110d197d7fa2f1f6bbf01a7e18 (patch)
tree1b0fc79b52662dc680a791162379c5ccc8ae3ef7 /MediaBrowser.Controller/Entities/MusicVideo.cs
parent3be4aa8dc729f5899658790f43a1d1c182e7a243 (diff)
add reel
Diffstat (limited to 'MediaBrowser.Controller/Entities/MusicVideo.cs')
-rw-r--r--MediaBrowser.Controller/Entities/MusicVideo.cs37
1 files changed, 4 insertions, 33 deletions
diff --git a/MediaBrowser.Controller/Entities/MusicVideo.cs b/MediaBrowser.Controller/Entities/MusicVideo.cs
index d36bfd7c4..307117fdd 100644
--- a/MediaBrowser.Controller/Entities/MusicVideo.cs
+++ b/MediaBrowser.Controller/Entities/MusicVideo.cs
@@ -12,12 +12,6 @@ namespace MediaBrowser.Controller.Entities
public class MusicVideo : Video, IHasArtist, IHasMusicGenres, IHasProductionLocations, IHasBudget, IHasLookupInfo<MusicVideoInfo>
{
/// <summary>
- /// Gets or sets the artist.
- /// </summary>
- /// <value>The artist.</value>
- public string Artist { get; set; }
-
- /// <summary>
/// Gets or sets the album.
/// </summary>
/// <value>The album.</value>
@@ -35,27 +29,12 @@ namespace MediaBrowser.Controller.Entities
/// <value>The revenue.</value>
public double? Revenue { get; set; }
public List<string> ProductionLocations { get; set; }
+ public List<string> Artists { get; set; }
public MusicVideo()
{
ProductionLocations = new List<string>();
- }
-
- [IgnoreDataMember]
- public List<string> Artists
- {
- get
- {
- var list = new List<string>();
-
- if (!string.IsNullOrEmpty(Artist))
- {
- list.Add(Artist);
- }
-
- return list;
-
- }
+ Artists = new List<string>();
}
[IgnoreDataMember]
@@ -63,15 +42,7 @@ namespace MediaBrowser.Controller.Entities
{
get
{
- var list = new List<string>();
-
- if (!string.IsNullOrEmpty(Artist))
- {
- list.Add(Artist);
- }
-
- return list;
-
+ return Artists;
}
}
@@ -82,7 +53,7 @@ namespace MediaBrowser.Controller.Entities
/// <returns><c>true</c> if the specified name has artist; otherwise, <c>false</c>.</returns>
public bool HasArtist(string name)
{
- return string.Equals(Artist, name, StringComparison.OrdinalIgnoreCase);
+ return AllArtists.Contains(name, StringComparer.OrdinalIgnoreCase);
}
/// <summary>