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

update now playing

This commit is contained in:
Luke Pulverenti 2015-09-27 11:00:57 -04:00
parent fc4068bdcc
commit 7d89bd22b9
17 changed files with 312 additions and 59 deletions

View file

@ -7,7 +7,7 @@
var fetcher = window.BackgroundFetch;
fetcher.configure(onBackgroundFetch, onBackgroundFetchFailed, {
stopOnTerminate: false // <-- false is default
stopOnTerminate: true // <-- false is default
});
}
@ -55,20 +55,20 @@
Logger.log('- BackgroundFetch failed');
}
var syncInterval = 3600000;
var syncInterval = 1800000;
function restartInterval() {
setInterval(function () {
startSync();
//startSync();
}, syncInterval);
if (lastStart > 0 && (new Date().getTime() - lastStart) >= syncInterval) {
setTimeout(function () {
startSync();
//startSync();
}, 5000);
}