From c494cb67daad35e099829a09716c6e5e9e866e3a Mon Sep 17 00:00:00 2001 From: LukePulverenti Date: Sat, 16 Mar 2013 15:27:54 -0400 Subject: [PATCH] #6 - Click on the Performers tab will crash the mbt --- MediaBrowser.Api/UserLibrary/GenresService.cs | 2 +- MediaBrowser.Api/UserLibrary/PersonsService.cs | 2 +- MediaBrowser.Api/UserLibrary/StudiosService.cs | 2 +- MediaBrowser.Api/UserLibrary/YearsService.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/MediaBrowser.Api/UserLibrary/GenresService.cs b/MediaBrowser.Api/UserLibrary/GenresService.cs index 43dcf2a319..1962dff5c9 100644 --- a/MediaBrowser.Api/UserLibrary/GenresService.cs +++ b/MediaBrowser.Api/UserLibrary/GenresService.cs @@ -11,7 +11,7 @@ namespace MediaBrowser.Api.UserLibrary /// /// Class GetGenres /// - [Route("/Users/{UserId}/Items/{Id}/Genres", "GET")] + [Route("/Users/{UserId}/Items/{ParentId}/Genres", "GET")] [Route("/Users/{UserId}/Items/Root/Genres", "GET")] [ServiceStack.ServiceHost.Api(Description = "Gets all genres from a given item, folder, or the entire library")] public class GetGenres : GetItemsByName diff --git a/MediaBrowser.Api/UserLibrary/PersonsService.cs b/MediaBrowser.Api/UserLibrary/PersonsService.cs index 81c0b2b7e8..0c6f807bfb 100644 --- a/MediaBrowser.Api/UserLibrary/PersonsService.cs +++ b/MediaBrowser.Api/UserLibrary/PersonsService.cs @@ -11,7 +11,7 @@ namespace MediaBrowser.Api.UserLibrary /// /// Class GetPersons /// - [Route("/Users/{UserId}/Items/{Id}/Persons", "GET")] + [Route("/Users/{UserId}/Items/{ParentId}/Persons", "GET")] [Route("/Users/{UserId}/Items/Root/Persons", "GET")] [ServiceStack.ServiceHost.Api(Description = "Gets all persons from a given item, folder, or the entire library")] public class GetPersons : GetItemsByName diff --git a/MediaBrowser.Api/UserLibrary/StudiosService.cs b/MediaBrowser.Api/UserLibrary/StudiosService.cs index 197abd0c5f..3c3d1a504d 100644 --- a/MediaBrowser.Api/UserLibrary/StudiosService.cs +++ b/MediaBrowser.Api/UserLibrary/StudiosService.cs @@ -11,7 +11,7 @@ namespace MediaBrowser.Api.UserLibrary /// /// Class GetStudios /// - [Route("/Users/{UserId}/Items/{Id}/Studios", "GET")] + [Route("/Users/{UserId}/Items/{ParentId}/Studios", "GET")] [Route("/Users/{UserId}/Items/Root/Studios", "GET")] [ServiceStack.ServiceHost.Api(Description = "Gets all studios from a given item, folder, or the entire library")] public class GetStudios : GetItemsByName diff --git a/MediaBrowser.Api/UserLibrary/YearsService.cs b/MediaBrowser.Api/UserLibrary/YearsService.cs index c3e3c8366b..99ea08cda0 100644 --- a/MediaBrowser.Api/UserLibrary/YearsService.cs +++ b/MediaBrowser.Api/UserLibrary/YearsService.cs @@ -12,7 +12,7 @@ namespace MediaBrowser.Api.UserLibrary /// /// Class GetYears /// - [Route("/Users/{UserId}/Items/{Id}/Years", "GET")] + [Route("/Users/{UserId}/Items/{ParentId}/Years", "GET")] [Route("/Users/{UserId}/Items/Root/Years", "GET")] [ServiceStack.ServiceHost.Api(Description = "Gets all years from a given item, folder, or the entire library")] public class GetYears : GetItemsByName