mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
update similar
This commit is contained in:
parent
ddcebc4ff7
commit
920b57d9d1
1 changed files with 3 additions and 3 deletions
|
@ -243,8 +243,8 @@ namespace MediaBrowser.Api.Library
|
||||||
public string Id { get; set; }
|
public string Id { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
[Route("/Items/{Id}/Similar", "GET", Summary = "Downloads item media")]
|
[Route("/Items/{Id}/Similar", "GET", Summary = "Gets similar items")]
|
||||||
[Authenticated(Roles = "download")]
|
[Authenticated]
|
||||||
public class GetSimilarItems : BaseGetSimilarItemsFromItem
|
public class GetSimilarItems : BaseGetSimilarItemsFromItem
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
@ -356,7 +356,7 @@ namespace MediaBrowser.Api.Library
|
||||||
var program = item as IHasProgramAttributes;
|
var program = item as IHasProgramAttributes;
|
||||||
var channelItem = item as ChannelVideoItem;
|
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)
|
return new MoviesService(_userManager, _userDataManager, _libraryManager, _itemRepo, _dtoService, _channelManager)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue