mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update livetvguide
This commit is contained in:
parent
3818349496
commit
8443751aec
1 changed files with 20 additions and 5 deletions
|
@ -391,6 +391,25 @@
|
|||
changeDate(page, date);
|
||||
}
|
||||
|
||||
function reloadPageAfterValidation(page, limit) {
|
||||
|
||||
channelLimit = limit;
|
||||
|
||||
ApiClient.getLiveTvGuideInfo().done(function (guideInfo) {
|
||||
|
||||
setDateRange(page, guideInfo);
|
||||
});
|
||||
}
|
||||
|
||||
function reloadPage(page) {
|
||||
|
||||
RegistrationServices.validateFeature('livetv').done(function () {
|
||||
reloadPageAfterValidation(page, 1000);
|
||||
}).fail(function () {
|
||||
reloadPageAfterValidation(page, 3);
|
||||
});
|
||||
}
|
||||
|
||||
$(document).on('pageinitdepends', "#liveTvGuidePage", function () {
|
||||
|
||||
var page = this;
|
||||
|
@ -442,11 +461,7 @@
|
|||
}).on('pageshowready', "#liveTvGuidePage", function () {
|
||||
|
||||
var page = this;
|
||||
|
||||
ApiClient.getLiveTvGuideInfo().done(function (guideInfo) {
|
||||
|
||||
setDateRange(page, guideInfo);
|
||||
});
|
||||
reloadPage(page);
|
||||
});
|
||||
|
||||
})(jQuery, document);
|
Loading…
Add table
Add a link
Reference in a new issue