mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-07-09 03:04:24 -04:00
removed Publishers
This commit is contained in:
parent
2d7c0ab29c
commit
70377c71cc
@ -546,12 +546,6 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
/// <value>The studios.</value>
|
/// <value>The studios.</value>
|
||||||
public virtual List<string> Studios { get; set; }
|
public virtual List<string> Studios { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets the publishers.
|
|
||||||
/// </summary>
|
|
||||||
/// <value>The publishers.</value>
|
|
||||||
public virtual List<string> Publishers { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the genres.
|
/// Gets or sets the genres.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -1016,47 +1010,6 @@ namespace MediaBrowser.Controller.Entities
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Adds the publishers.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="publishers">The publishers.</param>
|
|
||||||
/// <exception cref="System.ArgumentNullException"></exception>
|
|
||||||
public void AddPublishers(IEnumerable<string> publishers)
|
|
||||||
{
|
|
||||||
if (publishers == null)
|
|
||||||
{
|
|
||||||
throw new ArgumentNullException();
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach (var name in publishers)
|
|
||||||
{
|
|
||||||
AddPublisher(name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Adds the publisher.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="name">The name.</param>
|
|
||||||
/// <exception cref="System.ArgumentNullException">name</exception>
|
|
||||||
public void AddPublisher(string name)
|
|
||||||
{
|
|
||||||
if (string.IsNullOrWhiteSpace(name))
|
|
||||||
{
|
|
||||||
throw new ArgumentNullException("name");
|
|
||||||
}
|
|
||||||
|
|
||||||
if (Publishers == null)
|
|
||||||
{
|
|
||||||
Publishers = new List<string>();
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!Publishers.Contains(name, StringComparer.OrdinalIgnoreCase))
|
|
||||||
{
|
|
||||||
Publishers.Add(name);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Adds a tagline to the item
|
/// Adds a tagline to the item
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -63,11 +63,6 @@ namespace MediaBrowser.Controller.Library
|
|||||||
{
|
{
|
||||||
dto.Studios = item.Studios;
|
dto.Studios = item.Studios;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fields.Contains(ItemFields.Publishers))
|
|
||||||
{
|
|
||||||
dto.Publishers = item.Publishers;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (fields.Contains(ItemFields.People))
|
if (fields.Contains(ItemFields.People))
|
||||||
{
|
{
|
||||||
|
@ -149,7 +149,7 @@ namespace MediaBrowser.Controller.Providers.MediaInfo
|
|||||||
// There's several values in tags may or may not be present
|
// There's several values in tags may or may not be present
|
||||||
FetchStudios(audio, tags, "organization");
|
FetchStudios(audio, tags, "organization");
|
||||||
FetchStudios(audio, tags, "ensemble");
|
FetchStudios(audio, tags, "ensemble");
|
||||||
FetchPublishers(audio, tags, "publisher");
|
FetchStudios(audio, tags, "publisher");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -168,22 +168,6 @@ namespace MediaBrowser.Controller.Providers.MediaInfo
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Fetches the publishers.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="audio">The audio.</param>
|
|
||||||
/// <param name="tags">The tags.</param>
|
|
||||||
/// <param name="tagName">Name of the tag.</param>
|
|
||||||
private void FetchPublishers(Audio audio, Dictionary<string, string> tags, string tagName)
|
|
||||||
{
|
|
||||||
var val = GetDictionaryValue(tags, tagName);
|
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(val))
|
|
||||||
{
|
|
||||||
audio.AddPublishers(val.Split(new[] { '/', '|' }, StringSplitOptions.RemoveEmptyEntries));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the genres from the tags collection
|
/// Gets the genres from the tags collection
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -432,13 +432,6 @@ namespace MediaBrowser.Model.Dto
|
|||||||
/// <value>The overview HTML.</value>
|
/// <value>The overview HTML.</value>
|
||||||
[ProtoMember(70)]
|
[ProtoMember(70)]
|
||||||
public string OverviewHtml { get; set; }
|
public string OverviewHtml { get; set; }
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Gets or sets the publishers.
|
|
||||||
/// </summary>
|
|
||||||
/// <value>The publishers.</value>
|
|
||||||
[ProtoMember(71)]
|
|
||||||
public List<string> Publishers { get; set; }
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets a value indicating whether this instance can resume.
|
/// Gets a value indicating whether this instance can resume.
|
||||||
|
@ -80,11 +80,6 @@ namespace MediaBrowser.Model.Querying
|
|||||||
/// The aspect ratio of the primary image
|
/// The aspect ratio of the primary image
|
||||||
/// </summary>
|
/// </summary>
|
||||||
PrimaryImageAspectRatio,
|
PrimaryImageAspectRatio,
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// The publishers
|
|
||||||
/// </summary>
|
|
||||||
Publishers,
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// AirDays, status, SeriesName, etc
|
/// AirDays, status, SeriesName, etc
|
||||||
|
Loading…
x
Reference in New Issue
Block a user