diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-08-20 23:21:27 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-08-20 23:21:27 -0400 |
| commit | 920b57d9d167de29191b1005c0c045bbb8e9d1b4 (patch) | |
| tree | 6bd649a6794d4ab702008b59af73ce832ad7520d /MediaBrowser.Api/Library/LibraryService.cs | |
| parent | ddcebc4ff704d08e5f0a4dab5d14fe40e244b6d1 (diff) | |
update similar
Diffstat (limited to 'MediaBrowser.Api/Library/LibraryService.cs')
| -rw-r--r-- | MediaBrowser.Api/Library/LibraryService.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/MediaBrowser.Api/Library/LibraryService.cs b/MediaBrowser.Api/Library/LibraryService.cs index 945e803b2..3e49c1c9e 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) { |
