mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-05-02 23:06:31 +01:00
Add resume capability to GetTempFile
This commit is contained in:
@@ -397,24 +397,27 @@ var Dashboard = {
|
||||
if (!info.HasPendingRestart) {
|
||||
Dashboard.reloadPage();
|
||||
} else {
|
||||
Dashboard.reloadPageWhenServerAvailable(retryCount);
|
||||
Dashboard.retryReload(retryCount);
|
||||
}
|
||||
|
||||
}).fail(function () {
|
||||
|
||||
setTimeout(function () {
|
||||
|
||||
retryCount = retryCount || 0;
|
||||
retryCount++;
|
||||
|
||||
if (retryCount < 10) {
|
||||
Dashboard.reloadPageWhenServerAvailable(retryCount);
|
||||
} else {
|
||||
Dashboard.suppressAjaxErrors = false;
|
||||
}
|
||||
}, 500);
|
||||
}).fail(function() {
|
||||
Dashboard.retryReload(retryCount);
|
||||
});
|
||||
},
|
||||
|
||||
retryReload: function (retryCount) {
|
||||
setTimeout(function () {
|
||||
|
||||
retryCount = retryCount || 0;
|
||||
retryCount++;
|
||||
|
||||
if (retryCount < 10) {
|
||||
Dashboard.reloadPageWhenServerAvailable(retryCount);
|
||||
} else {
|
||||
Dashboard.suppressAjaxErrors = false;
|
||||
}
|
||||
}, 500);
|
||||
},
|
||||
|
||||
getPosterViewHtml: function (options) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user