Fix tests

This commit is contained in:
Zoe Roux 2026-03-27 19:09:42 +01:00
parent 93bc58a2d0
commit 92cdbe4052
No known key found for this signature in database
4 changed files with 5 additions and 9 deletions

View File

@ -30,7 +30,7 @@ Kyoo does not have a plugin system and aim to have every features built-in (see
- **Helm Chart:** Deploy Kyoo to your Kubernetes cluster today! There is an official Helm chart. Multiple replicas is a WIP!
- ~**OIDC Connection:** Connect using any OIDC compliant service (Google, Discord, Authelia, you name it).~ (soon, not reimplemented in v5 yet)
- **OIDC Connection:** Connect using any OIDC compliant service (Google, Discord, Authelia, you name it).
- ~**Watch List Scrubbing Support:** Your watch list is automatically synced to connected services (SIMKL and soon others [#351](https://github.com/zoriya/Kyoo/issues/351), [#352](https://github.com/zoriya/Kyoo/issues/352)). No need to manually mark episodes as watched.~ (soon, not reimplemented in v5 yet)

View File

@ -53,7 +53,7 @@ describe("Parse filter", () => {
type: "op",
operator: "ge",
property: { name: "airDate" },
value: { type: "date", value: "2022-10-12" },
value: { type: "date", value: new Date("2022-10-12") },
},
});
});

View File

@ -72,7 +72,7 @@ CollectionDetails.query = (slug: string): QueryIdentifier<Show> => ({
parser: Show,
path: ["api", "collections", slug, "shows"],
params: {
sort: ["airDate"]
sort: ["airDate"],
},
infinite: true,
});

View File

@ -205,9 +205,7 @@ async def refresh_movie_by_slug(
Request(
kind="movie",
title=show.name,
year=show.air_date.year
if show.air_date is not None
else None,
year=show.air_date.year if show.air_date is not None else None,
external_id=MetadataId.map_dict(show.external_id),
videos=[],
)
@ -237,9 +235,7 @@ async def refresh_serie_by_slug(
Request(
kind="episode",
title=show.name,
year=show.start_air.year
if show.start_air is not None
else None,
year=show.start_air.year if show.start_air is not None else None,
external_id=MetadataId.map_dict(show.external_id),
videos=[],
)