mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update local sync
This commit is contained in:
parent
95f0f7874f
commit
d0aee5580a
8 changed files with 93 additions and 39 deletions
|
@ -3361,6 +3361,29 @@
|
|||
});
|
||||
};
|
||||
|
||||
self.cancelSyncItems = function (itemIds, targetId) {
|
||||
|
||||
if (!userId) {
|
||||
throw new Error("null userId");
|
||||
}
|
||||
|
||||
if (!itemId) {
|
||||
throw new Error("null itemId");
|
||||
}
|
||||
|
||||
var url = self.getUrl("Sync/Items/Cancel");
|
||||
|
||||
return self.ajax({
|
||||
type: "POST",
|
||||
data: JSON.stringify({
|
||||
TargetId: targetId || self.deviceId(),
|
||||
ItemIds: itemIds
|
||||
}),
|
||||
contentType: "application/json",
|
||||
url: url
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* Reports a user has stopped playing an item
|
||||
* @param {String} userId
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue