aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/Entities/BaseItem.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Controller/Entities/BaseItem.cs')
-rw-r--r--MediaBrowser.Controller/Entities/BaseItem.cs21
1 files changed, 20 insertions, 1 deletions
diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs
index 84b6d8097..f81485867 100644
--- a/MediaBrowser.Controller/Entities/BaseItem.cs
+++ b/MediaBrowser.Controller/Entities/BaseItem.cs
@@ -125,7 +125,7 @@ namespace MediaBrowser.Controller.Entities
/// </summary>
/// <value>The trailer URL.</value>
public List<MediaUrl> RemoteTrailers { get; set; }
-
+
/// <summary>
/// Return the id that should be used to key display prefs for this item.
/// Default is based on the type for everything except actual generic folders.
@@ -1226,6 +1226,25 @@ namespace MediaBrowser.Controller.Entities
}
/// <summary>
+ /// Adds the tagline.
+ /// </summary>
+ /// <param name="item">The item.</param>
+ /// <param name="tagline">The tagline.</param>
+ /// <exception cref="System.ArgumentNullException">tagline</exception>
+ public void AddTagline(string tagline)
+ {
+ if (string.IsNullOrWhiteSpace(tagline))
+ {
+ throw new ArgumentNullException("tagline");
+ }
+
+ if (!Taglines.Contains(tagline, StringComparer.OrdinalIgnoreCase))
+ {
+ Taglines.Add(tagline);
+ }
+ }
+
+ /// <summary>
/// Adds a studio to the item
/// </summary>
/// <param name="name">The name.</param>