mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
sort upcoming episodes on same day by sort name
This commit is contained in:
parent
6bca66191f
commit
30a5ad2ae4
3 changed files with 12 additions and 9 deletions
|
@ -541,22 +541,22 @@
|
|||
});
|
||||
|
||||
if (item.Type == "Season") {
|
||||
$('#childrenTitle', page).html('Episodes (' + item.ChildCount + ')');
|
||||
$('#childrenTitle', page).html('Episodes');
|
||||
}
|
||||
else if (item.Type == "Series") {
|
||||
$('#childrenTitle', page).html('Seasons (' + item.SeasonCount + ')');
|
||||
$('#childrenTitle', page).html('Seasons');
|
||||
}
|
||||
else if (item.Type == "BoxSet") {
|
||||
$('#childrenTitle', page).html('Movies (' + item.ChildCount + ')');
|
||||
$('#childrenTitle', page).html('Movies');
|
||||
}
|
||||
else if (item.Type == "MusicAlbum") {
|
||||
$('#childrenTitle', page).html('Tracks (' + item.ChildCount + ')');
|
||||
$('#childrenTitle', page).html('Tracks');
|
||||
}
|
||||
else if (item.Type == "GameSystem") {
|
||||
$('#childrenTitle', page).html('Games (' + item.ChildCount + ')');
|
||||
$('#childrenTitle', page).html('Games');
|
||||
}
|
||||
else {
|
||||
$('#childrenTitle', page).html('Items (' + item.ChildCount + ')');
|
||||
$('#childrenTitle', page).html('Items');
|
||||
}
|
||||
}
|
||||
function renderUserDataIcons(page, item) {
|
||||
|
|
|
@ -1111,6 +1111,11 @@
|
|||
return 1;
|
||||
}
|
||||
|
||||
// If really close to 4:3 (poster image), just return 2:3
|
||||
if (Math.abs(1.33333333333 - result) <= .05) {
|
||||
return 1.33333333333;
|
||||
}
|
||||
|
||||
return result;
|
||||
},
|
||||
|
||||
|
|
|
@ -4,11 +4,9 @@
|
|||
|
||||
var page = this;
|
||||
|
||||
var now = new Date();
|
||||
|
||||
var options = {
|
||||
|
||||
SortBy: "PremiereDate,AirTime",
|
||||
SortBy: "PremiereDate,AirTime,SortName",
|
||||
SortOrder: "Ascending",
|
||||
IncludeItemTypes: "Episode",
|
||||
Limit: 30,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue