mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
limit number of people in dlna responses
This commit is contained in:
parent
11615f4399
commit
46d25396c6
8 changed files with 191 additions and 53 deletions
|
@ -446,6 +446,11 @@
|
|||
page.querySelector('#childrenCollapsible').classList.add('hide');
|
||||
}
|
||||
|
||||
if (item.Type == 'Series') {
|
||||
|
||||
renderSeriesSchedule(page, item, user);
|
||||
}
|
||||
|
||||
if (item.Type == 'Series') {
|
||||
|
||||
renderNextUp(page, item, user);
|
||||
|
@ -934,20 +939,21 @@
|
|||
}
|
||||
|
||||
var supportsImageAnalysis = appHost.supports('imageanalysis');
|
||||
var cardLayout = supportsImageAnalysis && (item.Type == "MusicAlbum" || item.Type == "Game" || item.Type == "MusicArtist");
|
||||
|
||||
html += cardBuilder.getCardsHtml({
|
||||
items: result.Items,
|
||||
shape: shape,
|
||||
showParentTitle: item.Type == "MusicAlbum",
|
||||
centerText: !supportsImageAnalysis,
|
||||
centerText: !cardLayout,
|
||||
showTitle: item.Type == "MusicAlbum" || item.Type == "Game" || item.Type == "MusicArtist",
|
||||
context: context,
|
||||
lazy: true,
|
||||
showDetailsMenu: true,
|
||||
coverImage: item.Type == "MusicAlbum" || item.Type == "MusicArtist",
|
||||
overlayPlayButton: true,
|
||||
cardLayout: supportsImageAnalysis && (item.Type == "MusicAlbum" || item.Type == "Game" || item.Type == "MusicArtist"),
|
||||
vibrant: supportsImageAnalysis
|
||||
cardLayout: cardLayout,
|
||||
vibrant: cardLayout && supportsImageAnalysis
|
||||
});
|
||||
html += '</div>';
|
||||
|
||||
|
@ -1242,10 +1248,49 @@
|
|||
|
||||
function renderChannelGuide(page, item, user) {
|
||||
|
||||
require('scripts/livetvcomponents,scripts/livetvchannel,livetvcss'.split(','), function () {
|
||||
require('scripts/livetvchannel,scripts/livetvcomponents,livetvcss'.split(','), function (liveTvChannelPage) {
|
||||
|
||||
liveTvChannelPage.renderPrograms(page, item.Id);
|
||||
});
|
||||
}
|
||||
|
||||
LiveTvChannelPage.renderPrograms(page, item.Id);
|
||||
function renderSeriesSchedule(page, item, user) {
|
||||
|
||||
return;
|
||||
ApiClient.getLiveTvPrograms({
|
||||
|
||||
UserId: Dashboard.getCurrentUserId(),
|
||||
HasAired: false,
|
||||
SortBy: "StartDate",
|
||||
EnableTotalRecordCount: false,
|
||||
EnableImages: false,
|
||||
ImageTypeLimit: 0,
|
||||
Limit: 50,
|
||||
EnableUserData: false,
|
||||
LibrarySeriesId: item.Id
|
||||
|
||||
}).then(function (result) {
|
||||
|
||||
if (result.Items.length) {
|
||||
page.querySelector('#seriesScheduleSection').classList.remove('hide');
|
||||
|
||||
} else {
|
||||
page.querySelector('#seriesScheduleSection').classList.add('hide');
|
||||
}
|
||||
|
||||
page.querySelector('#seriesScheduleList').innerHTML = listView.getListViewHtml({
|
||||
items: result.Items,
|
||||
enableUserDataButtons: false,
|
||||
showParentTitle: false,
|
||||
image: false,
|
||||
showProgramDateTime: true,
|
||||
mediaInfo: false,
|
||||
showTitle: true,
|
||||
moreButton: false,
|
||||
action: 'programdialog'
|
||||
});
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,8 @@
|
|||
SortBy: "StartDate",
|
||||
EnableTotalRecordCount: false,
|
||||
EnableImages: false,
|
||||
ImageTypeLimit: 0
|
||||
ImageTypeLimit: 0,
|
||||
EnableUserData: false
|
||||
|
||||
}).then(function (result) {
|
||||
|
||||
|
@ -64,7 +65,7 @@
|
|||
});
|
||||
}
|
||||
|
||||
window.LiveTvChannelPage = {
|
||||
return {
|
||||
renderPrograms: loadPrograms
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue