1
0
Fork 0
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:
Luke Pulverenti 2013-11-08 10:35:36 -05:00
parent 6bca66191f
commit 30a5ad2ae4
3 changed files with 12 additions and 9 deletions

View file

@ -541,22 +541,22 @@
}); });
if (item.Type == "Season") { if (item.Type == "Season") {
$('#childrenTitle', page).html('Episodes (' + item.ChildCount + ')'); $('#childrenTitle', page).html('Episodes');
} }
else if (item.Type == "Series") { else if (item.Type == "Series") {
$('#childrenTitle', page).html('Seasons (' + item.SeasonCount + ')'); $('#childrenTitle', page).html('Seasons');
} }
else if (item.Type == "BoxSet") { else if (item.Type == "BoxSet") {
$('#childrenTitle', page).html('Movies (' + item.ChildCount + ')'); $('#childrenTitle', page).html('Movies');
} }
else if (item.Type == "MusicAlbum") { else if (item.Type == "MusicAlbum") {
$('#childrenTitle', page).html('Tracks (' + item.ChildCount + ')'); $('#childrenTitle', page).html('Tracks');
} }
else if (item.Type == "GameSystem") { else if (item.Type == "GameSystem") {
$('#childrenTitle', page).html('Games (' + item.ChildCount + ')'); $('#childrenTitle', page).html('Games');
} }
else { else {
$('#childrenTitle', page).html('Items (' + item.ChildCount + ')'); $('#childrenTitle', page).html('Items');
} }
} }
function renderUserDataIcons(page, item) { function renderUserDataIcons(page, item) {

View file

@ -1111,6 +1111,11 @@
return 1; 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; return result;
}, },

View file

@ -4,11 +4,9 @@
var page = this; var page = this;
var now = new Date();
var options = { var options = {
SortBy: "PremiereDate,AirTime", SortBy: "PremiereDate,AirTime,SortName",
SortOrder: "Ascending", SortOrder: "Ascending",
IncludeItemTypes: "Episode", IncludeItemTypes: "Episode",
Limit: 30, Limit: 30,