Skip to content

Commit 284da38

Browse files
committed
feat: show TV Season progress in home page if TV is enabled
1 parent bddf1bc commit 284da38

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/app/models.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -299,6 +299,14 @@ def get_in_progress(self, user, sort_by, specific_media_type=None):
299299
]
300300
)
301301

302+
# Add season to the list if TV is enabled and season is not already in the list
303+
if (
304+
not specific_media_type
305+
and getattr(user, "tv_enabled", False)
306+
and MediaTypes.SEASON.value not in media_types_to_process
307+
):
308+
media_types_to_process.insert(0, MediaTypes.SEASON.value)
309+
302310
for media_type in media_types_to_process:
303311
media_list = self.get_media_list(
304312
user=user,

0 commit comments

Comments
 (0)