1
0
Fork 0
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:
Luke Pulverenti 2016-08-16 00:12:12 -04:00
parent 95f0f7874f
commit d0aee5580a
8 changed files with 93 additions and 39 deletions

View file

@ -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