diff --git a/dashboard-ui/components/tvproviders/xmltv.js b/dashboard-ui/components/tvproviders/xmltv.js index 45d90d13ea..91b24fbae1 100644 --- a/dashboard-ui/components/tvproviders/xmltv.js +++ b/dashboard-ui/components/tvproviders/xmltv.js @@ -74,7 +74,7 @@ info.Path = page.querySelector('.txtPath').value; - info.MoviePrefix = page.querySelector('.txtMoviePrefix'); + info.MoviePrefix = page.querySelector('.txtMoviePrefix') || null; info.MovieCategories = getCategories(page.querySelector('.txtMovies')); info.KidsCategories = getCategories(page.querySelector('.txtKids')); diff --git a/dashboard-ui/movies.html b/dashboard-ui/movies.html index a7246720b0..81a11cce86 100644 --- a/dashboard-ui/movies.html +++ b/dashboard-ui/movies.html @@ -104,7 +104,7 @@
-
+
diff --git a/dashboard-ui/scripts/moviegenres.js b/dashboard-ui/scripts/moviegenres.js index 1aa3199e25..17a330e401 100644 --- a/dashboard-ui/scripts/moviegenres.js +++ b/dashboard-ui/scripts/moviegenres.js @@ -19,7 +19,7 @@ Recursive: true, EnableTotalRecordCount: false }, - view: libraryBrowser.getSavedView(key) || 'PosterCard' + view: libraryBrowser.getSavedView(key) || (appHost.preferVisualCards ? 'PosterCard' : 'Poster') }; pageData.query.ParentId = params.topParentId; @@ -68,6 +68,10 @@ 5 : 8; + if (enableScrollX()) { + limit = 10; + } + var enableImageTypes = viewStyle == 'Thumb' || viewStyle == 'ThumbCard' ? "Primary,Backdrop,Thumb" : "Primary"; @@ -82,7 +86,8 @@ EnableImageTypes: enableImageTypes, Limit: limit, GenreIds: id, - EnableTotalRecordCount: false + EnableTotalRecordCount: false, + ParentId: params.topParentId }; ApiClient.getItems(Dashboard.getCurrentUserId(), query).then(function (result) { diff --git a/dashboard-ui/scripts/tvgenres.js b/dashboard-ui/scripts/tvgenres.js index 0b3af0674e..4ab9246042 100644 --- a/dashboard-ui/scripts/tvgenres.js +++ b/dashboard-ui/scripts/tvgenres.js @@ -19,7 +19,7 @@ Recursive: true, EnableTotalRecordCount: false }, - view: libraryBrowser.getSavedView(key) || 'PosterCard' + view: libraryBrowser.getSavedView(key) || (appHost.preferVisualCards ? 'PosterCard' : 'Poster') }; pageData.query.ParentId = params.topParentId; @@ -68,6 +68,10 @@ 5 : 8; + if (enableScrollX()) { + limit = 10; + } + var enableImageTypes = viewStyle == 'Thumb' || viewStyle == 'ThumbCard' ? "Primary,Backdrop,Thumb" : "Primary"; @@ -82,7 +86,8 @@ EnableImageTypes: enableImageTypes, Limit: limit, GenreIds: id, - EnableTotalRecordCount: false + EnableTotalRecordCount: false, + ParentId: params.topParentId }; ApiClient.getItems(Dashboard.getCurrentUserId(), query).then(function (result) { @@ -112,7 +117,7 @@ centerText: false, cardLayout: true, vibrant: supportsImageAnalysis, - showYear: true + showSeriesYear: true }); } else if (viewStyle == "PosterCard") { @@ -124,7 +129,7 @@ centerText: false, cardLayout: true, vibrant: supportsImageAnalysis, - showYear: true + showSeriesYear: true }); } else if (viewStyle == "Poster") { diff --git a/dashboard-ui/tv.html b/dashboard-ui/tv.html index 53e08918ad..02c4e7743f 100644 --- a/dashboard-ui/tv.html +++ b/dashboard-ui/tv.html @@ -87,7 +87,7 @@
-
+