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

@ -105,7 +105,7 @@
} }
.listHeader { .listHeader {
margin-top: .5em; margin-top: .75em;
margin-bottom: 0; margin-bottom: 0;
padding-left: 7px; padding-left: 7px;
} }
@ -784,13 +784,13 @@ a.itemTag:hover {
@media all and (min-width: 1440px) { @media all and (min-width: 1440px) {
.ehsContent { .ehsContent {
max-width: 950px; max-width: 1240px;
} }
} }
@media all and (min-width: 1920px) { @media all and (min-width: 1920px) {
.ehsContent { .ehsContent {
max-width: 1260px; max-width: 1540px;
} }
} }

View file

@ -531,35 +531,17 @@
}); });
if ($('.backdropFields:visible', form).length) { config.ImageOptions.push({
Type: 'Backdrop',
Limit: $('#txtMaxBackdrops', form).val(),
MinWidth: $('#txtMinBackdropDownloadWidth', form).val()
});
config.ImageOptions.push({ config.ImageOptions.push({
Type: 'Backdrop', Type: 'Screenshot',
Limit: $('#txtMaxBackdrops', form).val(), Limit: $('#txtMaxScreenshots', form).val(),
MinWidth: $('#txtMinBackdropDownloadWidth', form).val() MinWidth: $('#txtMinScreenshotDownloadWidth', form).val()
}); });
} else {
config.ImageOptions.push({
Type: 'Backdrop',
Limit: 0,
MinWidth: 0
});
}
if ($('.screenshotFields:visible', form).length) {
config.ImageOptions.push({
Type: 'Screenshot',
Limit: $('#txtMaxScreenshots', form).val(),
MinWidth: $('#txtMinScreenshotDownloadWidth', form).val()
});
} else {
config.ImageOptions.push({
Type: 'Screenshot',
Limit: 0,
MinWidth: 0
});
}
} }
function onSubmit() { function onSubmit() {

View file

@ -11,7 +11,7 @@
SortBy: "DateCreated", SortBy: "DateCreated",
SortOrder: "Descending", SortOrder: "Descending",
IncludeItemTypes: "Movie", IncludeItemTypes: "Movie",
Limit: screenWidth >= 1920 ? 14 : 12, Limit: screenWidth >= 1440 ? 16 : 12,
Recursive: true, Recursive: true,
Fields: "PrimaryImageAspectRatio,DateCreated,UserData", Fields: "PrimaryImageAspectRatio,DateCreated,UserData",
Filters: "IsUnplayed" Filters: "IsUnplayed"
@ -33,7 +33,7 @@
SortOrder: "Descending", SortOrder: "Descending",
IncludeItemTypes: "Movie", IncludeItemTypes: "Movie",
Filters: "IsResumable", Filters: "IsResumable",
Limit: screenWidth >= 1920 ? 4 : 3, Limit: screenWidth >= 1920 ? 5 : (screenWidth >= 1440 ? 4 : 3),
Recursive: true, Recursive: true,
Fields: "DateCreated,UserData" Fields: "DateCreated,UserData"
}; };
@ -63,7 +63,7 @@
SortBy: "DateCreated", SortBy: "DateCreated",
SortOrder: "Descending", SortOrder: "Descending",
IncludeItemTypes: "Trailer", IncludeItemTypes: "Trailer",
Limit: screenWidth >= 1920 ? 7 : 6, Limit: screenWidth >= 1440 ? 8 : 6,
Recursive: true, Recursive: true,
Fields: "PrimaryImageAspectRatio,DateCreated,UserData", Fields: "PrimaryImageAspectRatio,DateCreated,UserData",
Filters: "IsUnplayed" Filters: "IsUnplayed"

View file

@ -2,6 +2,8 @@
$(document).on('pagebeforeshow', "#musicRecommendedPage", function () { $(document).on('pagebeforeshow', "#musicRecommendedPage", function () {
var screenWidth = $(window).width();
var page = this; var page = this;
var options = { var options = {
@ -9,7 +11,7 @@
SortBy: "DateCreated", SortBy: "DateCreated",
SortOrder: "Descending", SortOrder: "Descending",
IncludeItemTypes: "MusicAlbum", IncludeItemTypes: "MusicAlbum",
Limit: 5, Limit: screenWidth >= 1920 ? 7 : (screenWidth >= 1440 ? 6 : 5),
Recursive: true, Recursive: true,
Fields: "PrimaryImageAspectRatio" Fields: "PrimaryImageAspectRatio"
}; };
@ -32,7 +34,7 @@
SortBy: "DateCreated", SortBy: "DateCreated",
SortOrder: "Descending", SortOrder: "Descending",
IncludeItemTypes: "Audio", IncludeItemTypes: "Audio",
Limit: 5, Limit: screenWidth >= 1920 ? 7 : (screenWidth >= 1440 ? 6 : 5),
Recursive: true, Recursive: true,
Fields: "PrimaryImageAspectRatio,AudioInfo" Fields: "PrimaryImageAspectRatio,AudioInfo"
}; };
@ -55,7 +57,7 @@
SortBy: "DatePlayed", SortBy: "DatePlayed",
SortOrder: "Descending", SortOrder: "Descending",
IncludeItemTypes: "Audio", IncludeItemTypes: "Audio",
Limit: 5, Limit: screenWidth >= 1920 ? 7 : (screenWidth >= 1440 ? 6 : 5),
Recursive: true, Recursive: true,
Fields: "PrimaryImageAspectRatio,AudioInfo", Fields: "PrimaryImageAspectRatio,AudioInfo",
Filters: "IsPlayed" Filters: "IsPlayed"
@ -85,7 +87,7 @@
SortBy: "PlayCount", SortBy: "PlayCount",
SortOrder: "Descending", SortOrder: "Descending",
IncludeItemTypes: "Audio", IncludeItemTypes: "Audio",
Limit: 10, Limit: screenWidth >= 1920 ? 14 : (screenWidth >= 1440 ? 12 : 10),
Recursive: true, Recursive: true,
Fields: "PrimaryImageAspectRatio,AudioInfo", Fields: "PrimaryImageAspectRatio,AudioInfo",
Filters: "IsPlayed" Filters: "IsPlayed"

View file

@ -2,11 +2,13 @@
$(document).on('pagebeforeshow', "#tvNextUpPage", function () { $(document).on('pagebeforeshow', "#tvNextUpPage", function () {
var screenWidth = $(window).width();
var page = this; var page = this;
var options = { var options = {
Limit: 24, Limit: screenWidth >= 1920 ? 25 : 24,
Fields: "PrimaryImageAspectRatio,SeriesInfo,DateCreated", Fields: "PrimaryImageAspectRatio,SeriesInfo,DateCreated",
UserId: Dashboard.getCurrentUserId(), UserId: Dashboard.getCurrentUserId(),
ExcludeLocationTypes: "Virtual" ExcludeLocationTypes: "Virtual"

View file

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

View file

@ -6,6 +6,7 @@
.jstree-mb3 li, .jstree-mb3 li,
.jstree-mb3 ins {cursor: pointer; background-image:url("d.png"); background-repeat:no-repeat; background-color:transparent; } .jstree-mb3 ins {cursor: pointer; background-image:url("d.png"); background-repeat:no-repeat; background-color:transparent; }
.jstree-mb3 ins {position: relative;top: 6px; }
.jstree-mb3 li { background-position:-90px 0; background-repeat:repeat-y; } .jstree-mb3 li { background-position:-90px 0; background-repeat:repeat-y; }
.jstree-mb3 li.jstree-last { background:transparent; } .jstree-mb3 li.jstree-last { background:transparent; }
.jstree-mb3 .jstree-open > ins { background-position:-72px 0; } .jstree-mb3 .jstree-open > ins { background-position:-72px 0; }
@ -76,9 +77,9 @@
} }
.jstree li:last-child { .jstree li:last-child {
border-bottom: 0; border-color: transparent;
} }
.jstree li { min-height:28px; line-height:28px; } .jstree li { min-height:32px; line-height:32px; }
.jstree a { line-height:28px; height:28px; } .jstree a { line-height:32px; height:32px; }
.jstree a ins { height:28px; width:28px; } .jstree a ins { height:28px; width:28px; }