aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/Audio/Audio.cs
diff options
context:
space:
mode:
authorEric Reed <ebr@mediabrowser3.com>2013-04-22 11:27:23 -0400
committerEric Reed <ebr@mediabrowser3.com>2013-04-22 11:27:23 -0400
commit49cc12c4f56ceb51d1e03d405146ab2112411122 (patch)
treec0076d970df935a724c1ad1b7fbfb9800d0682e3 /MediaBrowser.Controller/Entities/Audio/Audio.cs
parent8aa9a5ec63ff6c744c456bd0a2bb11d9da5b74e6 (diff)
parenta55999b780367dfa344bb0dfc754b5172b0b195a (diff)
Merge branch 'master' of https://github.com/MediaBrowser/MediaBrowser
Diffstat (limited to 'MediaBrowser.Controller/Entities/Audio/Audio.cs')
-rw-r--r--MediaBrowser.Controller/Entities/Audio/Audio.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/Audio/Audio.cs b/MediaBrowser.Controller/Entities/Audio/Audio.cs
index 9deb8241d..01bdd84ac 100644
--- a/MediaBrowser.Controller/Entities/Audio/Audio.cs
+++ b/MediaBrowser.Controller/Entities/Audio/Audio.cs
@@ -113,5 +113,15 @@ namespace MediaBrowser.Controller.Entities.Audio
return (ProductionYear != null ? ProductionYear.Value.ToString("000-") : "")
+ (IndexNumber != null ? IndexNumber.Value.ToString("0000 - ") : "") + Name;
}
+
+ /// <summary>
+ /// Determines whether the specified name has artist.
+ /// </summary>
+ /// <param name="name">The name.</param>
+ /// <returns><c>true</c> if the specified name has artist; otherwise, <c>false</c>.</returns>
+ public bool HasArtist(string name)
+ {
+ return Artists.Contains(name, StringComparer.OrdinalIgnoreCase) || string.Equals(AlbumArtist, name, StringComparison.OrdinalIgnoreCase);
+ }
}
}