aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/UserLibrary/ArtistsService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-27 11:02:16 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-05-27 11:02:16 -0400
commit390f1653327e15248c0b0181b338c6a14d04732a (patch)
treea8e4ba737ec5796e7332340da59ceba38e07620e /MediaBrowser.Api/UserLibrary/ArtistsService.cs
parent2d0c51071a952634d501c74c105e6b2bc48f856b (diff)
#280 - avoid an extra request to last fm by taking data from the MusicArtist entity
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/ArtistsService.cs')
-rw-r--r--MediaBrowser.Api/UserLibrary/ArtistsService.cs25
1 files changed, 0 insertions, 25 deletions
diff --git a/MediaBrowser.Api/UserLibrary/ArtistsService.cs b/MediaBrowser.Api/UserLibrary/ArtistsService.cs
index 16fabffee..fc981d0de 100644
--- a/MediaBrowser.Api/UserLibrary/ArtistsService.cs
+++ b/MediaBrowser.Api/UserLibrary/ArtistsService.cs
@@ -20,11 +20,6 @@ namespace MediaBrowser.Api.UserLibrary
[Api(Description = "Gets all artists from a given item, folder, or the entire library")]
public class GetArtists : GetItemsByName
{
- /// <summary>
- /// Filter by artists that are on tour, or not
- /// </summary>
- /// <value><c>null</c> if [is on tour] contains no value, <c>true</c> if [is on tour]; otherwise, <c>false</c>.</value>
- public bool? IsOnTour { get; set; }
}
/// <summary>
@@ -156,26 +151,6 @@ namespace MediaBrowser.Api.UserLibrary
}
/// <summary>
- /// Filters the items.
- /// </summary>
- /// <param name="request">The request.</param>
- /// <param name="items">The items.</param>
- /// <returns>IEnumerable{BaseItem}.</returns>
- protected override IEnumerable<BaseItem> FilterItems(GetItemsByName request, IEnumerable<BaseItem> items)
- {
- items = base.FilterItems(request, items);
-
- var getArtists = (GetArtists) request;
-
- if (getArtists.IsOnTour.HasValue)
- {
- items = items.OfType<Artist>().Where(i => i.IsOnTour == getArtists.IsOnTour.Value);
- }
-
- return items;
- }
-
- /// <summary>
/// Gets all items.
/// </summary>
/// <param name="request">The request.</param>