mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-29 16:07:40 +01:00
updatedAt on import
Co-authored-by: William Oldham <github@binaryoverload.co.uk>
This commit is contained in:
parent
8015ec5a92
commit
cb13ca72b2
1 changed files with 3 additions and 0 deletions
|
@ -19,6 +19,7 @@ export interface ProgressInput {
|
|||
episodeId?: string;
|
||||
seasonNumber?: number;
|
||||
episodeNumber?: number;
|
||||
updatedAt?: string;
|
||||
}
|
||||
|
||||
export function progressUpdateItemToInput(
|
||||
|
@ -60,6 +61,7 @@ export function progressMediaItemToInputs(
|
|||
seasonId: episode.seasonId,
|
||||
episodeNumber: episode.number,
|
||||
seasonNumber: item.seasons[episode.seasonId].number,
|
||||
updatedAt: new Date(episode.updatedAt).toISOString(),
|
||||
}));
|
||||
}
|
||||
return [
|
||||
|
@ -67,6 +69,7 @@ export function progressMediaItemToInputs(
|
|||
duration: item.progress?.duration ?? 0,
|
||||
watched: item.progress?.watched ?? 0,
|
||||
tmdbId,
|
||||
updatedAt: new Date(item.updatedAt).toISOString(),
|
||||
meta: {
|
||||
title: item.title ?? "",
|
||||
type: item.type ?? "",
|
||||
|
|
Loading…
Reference in a new issue