1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fixed themoviedb search returning no results

This commit is contained in:
Luke Pulverenti 2014-02-17 16:35:08 -05:00
parent e9a747ed77
commit 0b736d68b5
7 changed files with 33 additions and 44 deletions

View file

@ -2,6 +2,8 @@
$(document).on('pagebeforeshow', "#tvRecommendedPage", function () {
var screenWidth = $(window).width();
var page = this;
var options = {
@ -9,7 +11,7 @@
SortBy: "DateCreated",
SortOrder: "Descending",
IncludeItemTypes: "Episode",
Limit: 15,
Limit: screenWidth >= 1920 ? 20 : (screenWidth >= 1440 ? 16 : 15),
Recursive: true,
Fields: "PrimaryImageAspectRatio,SeriesInfo,UserData",
Filters: "IsUnplayed",
@ -36,7 +38,7 @@
SortOrder: "Descending",
IncludeItemTypes: "Episode",
Filters: "IsResumable",
Limit: 3,
Limit: screenWidth >= 1920 ? 5 : (screenWidth >= 1440 ? 4 : 3),
Recursive: true,
Fields: "PrimaryImageAspectRatio,SeriesInfo,UserData",
ExcludeLocationTypes: "Virtual"