mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-20 09:04:42 +01:00
added Artists filter
This commit is contained in:
@@ -14,5 +14,11 @@ namespace MediaBrowser.Controller.Entities.Audio
|
||||
{
|
||||
return "Artist-" + Name;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether this instance is on tour.
|
||||
/// </summary>
|
||||
/// <value><c>true</c> if this instance is on tour; otherwise, <c>false</c>.</value>
|
||||
public bool IsOnTour { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,5 +139,15 @@ namespace MediaBrowser.Controller.Entities.Audio
|
||||
base.Images = value;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether the specified artist has artist.
|
||||
/// </summary>
|
||||
/// <param name="artist">The artist.</param>
|
||||
/// <returns><c>true</c> if the specified artist has artist; otherwise, <c>false</c>.</returns>
|
||||
public bool HasArtist(string artist)
|
||||
{
|
||||
return Children.OfType<Audio>().Any(i => i.HasArtist(artist));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using MediaBrowser.Controller.Entities;
|
||||
using MediaBrowser.Controller.Entities.Audio;
|
||||
using MediaBrowser.Model.Entities;
|
||||
using System;
|
||||
|
||||
@@ -31,6 +32,13 @@ namespace MediaBrowser.Controller.Providers.Music
|
||||
{
|
||||
AddGenres(artist, data.tags);
|
||||
}
|
||||
|
||||
var entity = artist as Artist;
|
||||
|
||||
if (entity != null)
|
||||
{
|
||||
entity.IsOnTour = string.Equals(data.ontour, "1");
|
||||
}
|
||||
}
|
||||
|
||||
public static void ProcessAlbumData(BaseItem item, LastfmAlbum data)
|
||||
|
||||
Reference in New Issue
Block a user