mirror of https://github.com/jellyfin/jellyfin.git
added GetCriticReviews to IApiClient
This commit is contained in:
parent
7e5bdc837a
commit
e263d74476
|
@ -124,7 +124,7 @@ namespace MediaBrowser.Api
|
||||||
|
|
||||||
return inputItems.Where(i => i.Id != currentItem.Id)
|
return inputItems.Where(i => i.Id != currentItem.Id)
|
||||||
.Select(i => new Tuple<BaseItem, int>(i, getSimilarityScore(item, i)))
|
.Select(i => new Tuple<BaseItem, int>(i, getSimilarityScore(item, i)))
|
||||||
.Where(i => i.Item2 > 5)
|
.Where(i => i.Item2 > 2)
|
||||||
.OrderByDescending(i => i.Item2)
|
.OrderByDescending(i => i.Item2)
|
||||||
.ThenByDescending(i => i.Item1.CriticRating ?? 0)
|
.ThenByDescending(i => i.Item1.CriticRating ?? 0)
|
||||||
.Select(i => i.Item1);
|
.Select(i => i.Item1);
|
||||||
|
|
|
@ -405,10 +405,7 @@ namespace MediaBrowser.Controller.Dto
|
||||||
dto.Revenue = item.Revenue;
|
dto.Revenue = item.Revenue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (fields.Contains(ItemFields.EndDate))
|
dto.EndDate = item.EndDate;
|
||||||
{
|
|
||||||
dto.EndDate = item.EndDate;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (fields.Contains(ItemFields.HomePageUrl))
|
if (fields.Contains(ItemFields.HomePageUrl))
|
||||||
{
|
{
|
||||||
|
|
|
@ -23,6 +23,15 @@ namespace MediaBrowser.Model.ApiClient
|
||||||
/// </summary>
|
/// </summary>
|
||||||
event EventHandler<HttpResponseEventArgs> HttpResponseReceived;
|
event EventHandler<HttpResponseEventArgs> HttpResponseReceived;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the critic reviews.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="itemId">The item id.</param>
|
||||||
|
/// <param name="startIndex">The start index.</param>
|
||||||
|
/// <param name="limit">The limit.</param>
|
||||||
|
/// <returns>Task{ItemReviewsResult}.</returns>
|
||||||
|
Task<ItemReviewsResult> GetCriticReviews(string itemId, int? startIndex = null, int? limit = null);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the theme songs async.
|
/// Gets the theme songs async.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -49,7 +58,7 @@ namespace MediaBrowser.Model.ApiClient
|
||||||
/// <param name="inheritFromParents">if set to <c>true</c> [inherit from parents].</param>
|
/// <param name="inheritFromParents">if set to <c>true</c> [inherit from parents].</param>
|
||||||
/// <returns>Task{AllThemeMediaResult}.</returns>
|
/// <returns>Task{AllThemeMediaResult}.</returns>
|
||||||
Task<AllThemeMediaResult> GetAllThemeMediaAsync(string userId, string itemId, bool inheritFromParents);
|
Task<AllThemeMediaResult> GetAllThemeMediaAsync(string userId, string itemId, bool inheritFromParents);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Marks the notifications read.
|
/// Marks the notifications read.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -132,7 +141,7 @@ namespace MediaBrowser.Model.ApiClient
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>Task{UserDto[]}.</returns>
|
/// <returns>Task{UserDto[]}.</returns>
|
||||||
Task<UserDto[]> GetPublicUsersAsync();
|
Task<UserDto[]> GetPublicUsersAsync();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets active client sessions.
|
/// Gets active client sessions.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -167,7 +176,7 @@ namespace MediaBrowser.Model.ApiClient
|
||||||
/// <param name="query">The query.</param>
|
/// <param name="query">The query.</param>
|
||||||
/// <returns>Task{ItemsResult}.</returns>
|
/// <returns>Task{ItemsResult}.</returns>
|
||||||
Task<ItemsResult> GetSimilarTrailersAsync(SimilarItemsQuery query);
|
Task<ItemsResult> GetSimilarTrailersAsync(SimilarItemsQuery query);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the similar series async.
|
/// Gets the similar series async.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -700,7 +709,7 @@ namespace MediaBrowser.Model.ApiClient
|
||||||
/// <param name="options">The options.</param>
|
/// <param name="options">The options.</param>
|
||||||
/// <returns>System.String.</returns>
|
/// <returns>System.String.</returns>
|
||||||
string GetArtImageUrl(BaseItemDto item, ImageOptions options);
|
string GetArtImageUrl(BaseItemDto item, ImageOptions options);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the url needed to stream an audio file
|
/// Gets the url needed to stream an audio file
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Common.Internal</id>
|
<id>MediaBrowser.Common.Internal</id>
|
||||||
<version>3.0.151</version>
|
<version>3.0.152</version>
|
||||||
<title>MediaBrowser.Common.Internal</title>
|
<title>MediaBrowser.Common.Internal</title>
|
||||||
<authors>Luke</authors>
|
<authors>Luke</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<owners>ebr,Luke,scottisafool</owners>
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
<description>Contains common components shared by Media Browser Theater and Media Browser Server. Not intended for plugin developer consumption.</description>
|
<description>Contains common components shared by Media Browser Theater and Media Browser Server. Not intended for plugin developer consumption.</description>
|
||||||
<copyright>Copyright © Media Browser 2013</copyright>
|
<copyright>Copyright © Media Browser 2013</copyright>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency id="MediaBrowser.Common" version="3.0.151" />
|
<dependency id="MediaBrowser.Common" version="3.0.152" />
|
||||||
<dependency id="NLog" version="2.0.1.2" />
|
<dependency id="NLog" version="2.0.1.2" />
|
||||||
<dependency id="ServiceStack.Text" version="3.9.45" />
|
<dependency id="ServiceStack.Text" version="3.9.45" />
|
||||||
<dependency id="SimpleInjector" version="2.2.3" />
|
<dependency id="SimpleInjector" version="2.2.3" />
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Common</id>
|
<id>MediaBrowser.Common</id>
|
||||||
<version>3.0.151</version>
|
<version>3.0.152</version>
|
||||||
<title>MediaBrowser.Common</title>
|
<title>MediaBrowser.Common</title>
|
||||||
<authors>Media Browser Team</authors>
|
<authors>Media Browser Team</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<owners>ebr,Luke,scottisafool</owners>
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||||
<metadata>
|
<metadata>
|
||||||
<id>MediaBrowser.Server.Core</id>
|
<id>MediaBrowser.Server.Core</id>
|
||||||
<version>3.0.151</version>
|
<version>3.0.152</version>
|
||||||
<title>Media Browser.Server.Core</title>
|
<title>Media Browser.Server.Core</title>
|
||||||
<authors>Media Browser Team</authors>
|
<authors>Media Browser Team</authors>
|
||||||
<owners>ebr,Luke,scottisafool</owners>
|
<owners>ebr,Luke,scottisafool</owners>
|
||||||
|
@ -12,7 +12,7 @@
|
||||||
<description>Contains core components required to build plugins for Media Browser Server.</description>
|
<description>Contains core components required to build plugins for Media Browser Server.</description>
|
||||||
<copyright>Copyright © Media Browser 2013</copyright>
|
<copyright>Copyright © Media Browser 2013</copyright>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<dependency id="MediaBrowser.Common" version="3.0.151" />
|
<dependency id="MediaBrowser.Common" version="3.0.152" />
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</metadata>
|
</metadata>
|
||||||
<files>
|
<files>
|
||||||
|
|
Loading…
Reference in New Issue