From 1dc79e6a00e47818ca420f7c5ff30a133a468666 Mon Sep 17 00:00:00 2001 From: Your Name Date: Sat, 7 Jan 2023 17:48:15 -0500 Subject: [PATCH] improve tv season guess --- legacy/management/commands/migrate_catalog.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/legacy/management/commands/migrate_catalog.py b/legacy/management/commands/migrate_catalog.py index 3ae9cc61..41a033ed 100644 --- a/legacy/management/commands/migrate_catalog.py +++ b/legacy/management/commands/migrate_catalog.py @@ -263,7 +263,9 @@ class Command(BaseCommand): if not site.DEFAULT_MODEL and not content.metadata.get( "preferred_model" ): - if model_map[typ] == Movie and entity.is_series: + if model_map[typ] == Movie and ( + entity.is_series or entity.season + ): content.metadata["preferred_model"] = ( "TVSeason" if entity.season else "TVShow" )