Pārlūkot izejas kodu

revert extension method changes from previous build

Luke Pulverenti 11 gadi atpakaļ
vecāks
revīzija
4d304e3048

+ 20 - 1
MediaBrowser.Controller/Entities/BaseItem.cs

@@ -125,7 +125,7 @@ namespace MediaBrowser.Controller.Entities
         /// </summary>
         /// </summary>
         /// <value>The trailer URL.</value>
         /// <value>The trailer URL.</value>
         public List<MediaUrl> RemoteTrailers { get; set; }
         public List<MediaUrl> RemoteTrailers { get; set; }
-        
+
         /// <summary>
         /// <summary>
         /// Return the id that should be used to key display prefs for this item.
         /// 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.
         /// Default is based on the type for everything except actual generic folders.
@@ -1225,6 +1225,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>
         /// <summary>
         /// Adds a studio to the item
         /// Adds a studio to the item
         /// </summary>
         /// </summary>

+ 7 - 16
MediaBrowser.Controller/Entities/Extensions.cs

@@ -4,27 +4,18 @@ using System.Linq;
 
 
 namespace MediaBrowser.Controller.Entities
 namespace MediaBrowser.Controller.Entities
 {
 {
+    /// <summary>
+    /// Class Extensions
+    /// </summary>
     public static class Extensions
     public static class Extensions
     {
     {
         /// <summary>
         /// <summary>
-        /// Adds the tagline.
+        /// Adds the trailer URL.
         /// </summary>
         /// </summary>
         /// <param name="item">The item.</param>
         /// <param name="item">The item.</param>
-        /// <param name="tagline">The tagline.</param>
-        /// <exception cref="System.ArgumentNullException">tagline</exception>
-        public static void AddTagline(this BaseItem item, string tagline)
-        {
-            if (string.IsNullOrWhiteSpace(tagline))
-            {
-                throw new ArgumentNullException("tagline");
-            }
-
-            if (!item.Taglines.Contains(tagline, StringComparer.OrdinalIgnoreCase))
-            {
-                item.Taglines.Add(tagline);
-            }
-        }
-
+        /// <param name="url">The URL.</param>
+        /// <param name="isDirectLink">if set to <c>true</c> [is direct link].</param>
+        /// <exception cref="System.ArgumentNullException">url</exception>
         public static void AddTrailerUrl(this BaseItem item, string url, bool isDirectLink)
         public static void AddTrailerUrl(this BaseItem item, string url, bool isDirectLink)
         {
         {
             if (string.IsNullOrWhiteSpace(url))
             if (string.IsNullOrWhiteSpace(url))