fix: coerce year field to string type in ParsedFileSchema for consistent data handling

This commit is contained in:
Viren070
2025-06-15 21:34:08 +01:00
parent cc6eea7e52
commit 10bef68c36
+1 -1
View File
@@ -618,7 +618,7 @@ const ParsedFileSchema = z.object({
audioTags: z.array(z.string()),
languages: z.array(z.string()),
title: z.string().optional(),
year: z.string().optional(),
year: z.coerce.string().optional(),
season: z.number().optional(),
seasons: z.array(z.number()).optional(),
episode: z.number().optional(),