mirror of
https://github.com/movie-web/movie-web.git
synced 2024-12-28 04:21:50 +01:00
Fixed a mistake I made.
This commit is contained in:
parent
893e9e0ae6
commit
55bb3c4574
@ -100,29 +100,22 @@ export function progressResponsesToEntries(responses: ProgressResponse[]) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (item.type === "show" && v.season.id && v.episode.id) {
|
if (item.type === "show" && v.season.id && v.episode.id) {
|
||||||
if (
|
item.seasons[v.season.id] = {
|
||||||
!item.seasons[v.season.id] ||
|
id: v.season.id,
|
||||||
(item.episodes[v.episode.id] &&
|
number: v.season.number ?? 0,
|
||||||
new Date(v.updatedAt).getTime() >
|
title: "",
|
||||||
item.episodes[v.episode.id].updatedAt)
|
};
|
||||||
) {
|
item.episodes[v.episode.id] = {
|
||||||
item.seasons[v.season.id] = {
|
id: v.episode.id,
|
||||||
id: v.season.id,
|
number: v.episode.number ?? 0,
|
||||||
number: v.season.number ?? 0,
|
title: "",
|
||||||
title: "",
|
progress: {
|
||||||
};
|
duration: Number(v.duration),
|
||||||
item.episodes[v.episode.id] = {
|
watched: Number(v.watched),
|
||||||
id: v.episode.id,
|
},
|
||||||
number: v.episode.number ?? 0,
|
seasonId: v.season.id,
|
||||||
title: "",
|
updatedAt: new Date(v.updatedAt).getTime(),
|
||||||
progress: {
|
};
|
||||||
duration: Number(v.duration),
|
|
||||||
watched: Number(v.watched),
|
|
||||||
},
|
|
||||||
seasonId: v.season.id,
|
|
||||||
updatedAt: new Date(v.updatedAt).getTime(),
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user