From 10caa7ff8371f726127cd11e36209a1e155fd3f3 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Sun, 23 Jun 2013 14:55:30 -0400 Subject: added artist/slbum xml savers --- MediaBrowser.Controller/Entities/BaseItem.cs | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'MediaBrowser.Controller/Entities') diff --git a/MediaBrowser.Controller/Entities/BaseItem.cs b/MediaBrowser.Controller/Entities/BaseItem.cs index e72ffdb0b1..dbfeff7472 100644 --- a/MediaBrowser.Controller/Entities/BaseItem.cs +++ b/MediaBrowser.Controller/Entities/BaseItem.cs @@ -1142,6 +1142,19 @@ namespace MediaBrowser.Controller.Entities } } + public void AddTag(string name) + { + if (string.IsNullOrWhiteSpace(name)) + { + throw new ArgumentNullException("name"); + } + + if (!Tags.Contains(name, StringComparer.OrdinalIgnoreCase)) + { + Tags.Add(name); + } + } + /// /// Adds a tagline to the item /// -- cgit v1.2.3