From 29f3201fc532a50799594e7c3ddc331b24582e9a Mon Sep 17 00:00:00 2001 From: hobokenchicken Date: Thu, 23 Apr 2026 11:08:08 -0400 Subject: [PATCH] fix: tautulli get_history use after=unix_ts not start_date --- backend/src/services/tautulli.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/services/tautulli.ts b/backend/src/services/tautulli.ts index 0cb5c28..ea723a8 100644 --- a/backend/src/services/tautulli.ts +++ b/backend/src/services/tautulli.ts @@ -28,12 +28,13 @@ export async function backfillUserHistory(user: { d.setDate(d.getDate() - 30); return d.toISOString().split("T")[0]; })(); + const afterTimestamp = Math.floor(new Date(startDate).getTime() / 1000); const historyResponse = await axios.get(`${TAUTULLI_URL}/api/v2`, { params: { apikey: TAUTULLI_API_KEY, cmd: "get_history", user_id: tautulliUser.user_id, - start_date: startDate, + after: afterTimestamp, length: 1000, }, });