From 920b57d9d167de29191b1005c0c045bbb8e9d1b4 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Thu, 20 Aug 2015 23:21:27 -0400 Subject: [PATCH] update similar --- MediaBrowser.Api/Library/LibraryService.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/MediaBrowser.Api/Library/LibraryService.cs b/MediaBrowser.Api/Library/LibraryService.cs index 945e803b2a..3e49c1c9e5 100644 --- a/MediaBrowser.Api/Library/LibraryService.cs +++ b/MediaBrowser.Api/Library/LibraryService.cs @@ -243,8 +243,8 @@ namespace MediaBrowser.Api.Library public string Id { get; set; } } - [Route("/Items/{Id}/Similar", "GET", Summary = "Downloads item media")] - [Authenticated(Roles = "download")] + [Route("/Items/{Id}/Similar", "GET", Summary = "Gets similar items")] + [Authenticated] public class GetSimilarItems : BaseGetSimilarItemsFromItem { } @@ -356,7 +356,7 @@ namespace MediaBrowser.Api.Library var program = item as IHasProgramAttributes; var channelItem = item as ChannelVideoItem; - if (item is Movie || (program != null && program.IsMovie) || (channelItem != null && channelItem.ContentType == ChannelMediaContentType.Movie && channelItem.ContentType == ChannelMediaContentType.MovieExtra)) + if (item is Movie || (program != null && program.IsMovie) || (channelItem != null && channelItem.ContentType == ChannelMediaContentType.Movie) || (channelItem != null && channelItem.ContentType == ChannelMediaContentType.MovieExtra)) { return new MoviesService(_userManager, _userDataManager, _libraryManager, _itemRepo, _dtoService, _channelManager) {