Skip to content

Commit 3633b5a

Browse files
opt: give more weight to items watched recently
1 parent d2b5df8 commit 3633b5a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/services/scoring.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,10 @@ def _calculate_score_components(self, item: StremioLibraryItem) -> dict:
9191

9292
days_since = (now - last_watched).days
9393

94-
if days_since < 30:
94+
if days_since < 7:
95+
recency_score = 150
96+
is_recent = True
97+
elif days_since < 30:
9598
recency_score = 100
9699
is_recent = True
97100
elif days_since < 90:

0 commit comments

Comments
 (0)