refactor: cleaned up REST code
Some checks failed
Deploy / Deploy (push) Has been cancelled

also removed any references to Anify
This commit is contained in:
2025-12-06 10:00:26 -05:00
parent ec42ac4026
commit dbc78727bd
74 changed files with 300 additions and 8380 deletions

View File

@@ -0,0 +1,12 @@
export function mapTitle(
media: {
title: { english: string | null; userPreferred: string | null } | null;
} | null,
) {
if (!media) return null;
return {
...media,
title: media?.title?.userPreferred ?? media?.title?.english,
};
}