mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-12-18 20:45:33 +00:00
Type extra & allow movie entries to specify a slug on seed
This commit is contained in:
@@ -20,6 +20,7 @@ const generateSlug = (showSlug: string, entry: SeedEntry): string => {
|
||||
case "special":
|
||||
return `${showSlug}-sp${entry.number}`;
|
||||
case "movie":
|
||||
if (entry.slug) return entry.slug;
|
||||
return entry.order === 1 ? showSlug : `${showSlug}-${entry.order}`;
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user