mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update sync
This commit is contained in:
parent
d0aee5580a
commit
0e2b46b686
47 changed files with 309 additions and 145 deletions
|
@ -3363,23 +3363,16 @@
|
|||
|
||||
self.cancelSyncItems = function (itemIds, targetId) {
|
||||
|
||||
if (!userId) {
|
||||
throw new Error("null userId");
|
||||
if (!itemIds) {
|
||||
throw new Error("null itemIds");
|
||||
}
|
||||
|
||||
if (!itemId) {
|
||||
throw new Error("null itemId");
|
||||
}
|
||||
|
||||
var url = self.getUrl("Sync/Items/Cancel");
|
||||
var url = self.getUrl("Sync/" + (targetId || self.deviceId()) + "/Items", {
|
||||
ItemIds: itemIds.join(',')
|
||||
});
|
||||
|
||||
return self.ajax({
|
||||
type: "POST",
|
||||
data: JSON.stringify({
|
||||
TargetId: targetId || self.deviceId(),
|
||||
ItemIds: itemIds
|
||||
}),
|
||||
contentType: "application/json",
|
||||
type: "DELETE",
|
||||
url: url
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue