mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
merge from dev
This commit is contained in:
parent
1c8f02ce0f
commit
33b01d778c
911 changed files with 34157 additions and 57125 deletions
|
@ -14,28 +14,28 @@
|
|||
return syncPromise.promise();
|
||||
}
|
||||
|
||||
var deferred = DeferredBuilder.Deferred();
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
require(['multiserversync'], function () {
|
||||
require(['multiserversync'], function () {
|
||||
|
||||
options = options || {};
|
||||
options = options || {};
|
||||
|
||||
LocalSync.normalizeSyncOptions(options);
|
||||
LocalSync.normalizeSyncOptions(options);
|
||||
|
||||
options.cameraUploadServers = AppSettings.cameraUploadServers();
|
||||
options.cameraUploadServers = AppSettings.cameraUploadServers();
|
||||
|
||||
syncPromise = new MediaBrowser.MultiServerSync(ConnectionManager).sync(options).done(function () {
|
||||
syncPromise = new MediaBrowser.MultiServerSync(ConnectionManager).sync(options).then(function () {
|
||||
|
||||
syncPromise = null;
|
||||
deferred.resolve();
|
||||
syncPromise = null;
|
||||
resolve();
|
||||
|
||||
}).fail(function () {
|
||||
}, function () {
|
||||
|
||||
syncPromise = null;
|
||||
syncPromise = null;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
return deferred.promise();
|
||||
});
|
||||
},
|
||||
|
||||
normalizeSyncOptions: function (options) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue