mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
fix: mark as played
This commit is contained in:
@@ -32,15 +32,6 @@ export const markAsPlayed = async ({
|
|||||||
{ userId, datePlayed: new Date().toISOString() },
|
{ userId, datePlayed: new Date().toISOString() },
|
||||||
{ headers: getAuthHeaders(api) },
|
{ headers: getAuthHeaders(api) },
|
||||||
),
|
),
|
||||||
api.axiosInstance.post(
|
|
||||||
`${api.basePath}/Sessions/Playing/Progress`,
|
|
||||||
{
|
|
||||||
ItemId: item.Id,
|
|
||||||
PositionTicks: item.RunTimeTicks,
|
|
||||||
MediaSourceId: item.Id,
|
|
||||||
},
|
|
||||||
{ headers: getAuthHeaders(api) },
|
|
||||||
),
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return playedResponse.status === 200 && progressResponse.status === 200;
|
return playedResponse.status === 200 && progressResponse.status === 200;
|
||||||
|
|||||||
Reference in New Issue
Block a user