mirror of
https://github.com/sussy-code/smov.git
synced 2025-01-04 16:47: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;
|
episodeId?: string;
|
||||||
seasonNumber?: number;
|
seasonNumber?: number;
|
||||||
episodeNumber?: number;
|
episodeNumber?: number;
|
||||||
|
updatedAt?: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function progressUpdateItemToInput(
|
export function progressUpdateItemToInput(
|
||||||
|
@ -60,6 +61,7 @@ export function progressMediaItemToInputs(
|
||||||
seasonId: episode.seasonId,
|
seasonId: episode.seasonId,
|
||||||
episodeNumber: episode.number,
|
episodeNumber: episode.number,
|
||||||
seasonNumber: item.seasons[episode.seasonId].number,
|
seasonNumber: item.seasons[episode.seasonId].number,
|
||||||
|
updatedAt: new Date(episode.updatedAt).toISOString(),
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
return [
|
return [
|
||||||
|
@ -67,6 +69,7 @@ export function progressMediaItemToInputs(
|
||||||
duration: item.progress?.duration ?? 0,
|
duration: item.progress?.duration ?? 0,
|
||||||
watched: item.progress?.watched ?? 0,
|
watched: item.progress?.watched ?? 0,
|
||||||
tmdbId,
|
tmdbId,
|
||||||
|
updatedAt: new Date(item.updatedAt).toISOString(),
|
||||||
meta: {
|
meta: {
|
||||||
title: item.title ?? "",
|
title: item.title ?? "",
|
||||||
type: item.type ?? "",
|
type: item.type ?? "",
|
||||||
|
|
Loading…
Reference in a new issue