1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

add new guide settings

This commit is contained in:
Luke Pulverenti 2016-09-30 02:50:06 -04:00
parent 63d66a049a
commit faeb1c6d22
7 changed files with 87 additions and 21 deletions

View file

@ -158,7 +158,7 @@
var channelQuery = {
StartIndex: 0,
EnableFavoriteSorting: true
EnableFavoriteSorting: userSettings.get('livetv-favoritechannelsattop') !== 'false'
};
channelQuery.UserId = apiClient.getCurrentUserId();
@ -206,6 +206,14 @@
}
}
if (userSettings.get('livetv-channelorder') == 'Number') {
channelQuery.SortBy = "SortName";
channelQuery.SortOrder = "Ascending";
} else {
channelQuery.SortBy = "DatePlayed";
channelQuery.SortOrder = "Descending";
}
var date = newStartDate;
// Add one second to avoid getting programs that are just ending
date = new Date(date.getTime() + 1000);