mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-01 19:33:28 +02:00
revert extension method changes from previous build
This commit is contained in:
parent
1591558fc0
commit
4d304e3048
|
@ -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>
|
||||||
|
|
|
@ -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>
|
/// <param name="url">The URL.</param>
|
||||||
/// <exception cref="System.ArgumentNullException">tagline</exception>
|
/// <param name="isDirectLink">if set to <c>true</c> [is direct link].</param>
|
||||||
public static void AddTagline(this BaseItem item, string tagline)
|
/// <exception cref="System.ArgumentNullException">url</exception>
|
||||||
{
|
|
||||||
if (string.IsNullOrWhiteSpace(tagline))
|
|
||||||
{
|
|
||||||
throw new ArgumentNullException("tagline");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!item.Taglines.Contains(tagline, StringComparer.OrdinalIgnoreCase))
|
|
||||||
{
|
|
||||||
item.Taglines.Add(tagline);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
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))
|
||||||
|
|
Loading…
Reference in a new issue