mirror of
https://github.com/aleksilassila/reiverr.git
synced 2026-04-22 08:45:13 +02:00
Context menus and setting watch state
This commit is contained in:
@@ -173,3 +173,26 @@ export const reportJellyfinPlaybackStopped = (
|
||||
MediaSourceId: itemId
|
||||
}
|
||||
});
|
||||
|
||||
export const setJellyfinItemWatched = (jellyfinId: string) =>
|
||||
JellyfinApi.post('/Users/{userId}/PlayedItems/{itemId}', {
|
||||
params: {
|
||||
path: {
|
||||
userId: JELLYFIN_USER_ID,
|
||||
itemId: jellyfinId
|
||||
},
|
||||
query: {
|
||||
datePlayed: new Date().toISOString()
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
export const setJellyfinItemUnwatched = (jellyfinId: string) =>
|
||||
JellyfinApi.del('/Users/{userId}/PlayedItems/{itemId}', {
|
||||
params: {
|
||||
path: {
|
||||
userId: JELLYFIN_USER_ID,
|
||||
itemId: jellyfinId
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user