From cb56ee2beef7c0d1aab1e79b5fe7e2c9b4e56cec Mon Sep 17 00:00:00 2001 From: BoulderBadgeDad Date: Fri, 19 Jun 2026 15:12:02 -0700 Subject: [PATCH] =?UTF-8?q?video=20backfill:=20log=20the=20title=20(was=20?= =?UTF-8?q?'None')=20=E2=80=94=20read=20item['title']=20not=20['name']?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit backfill_next returns rows keyed by title/kind/id/imdb_id (no 'name'), so the 'Enriched movie None via Trakt' spam was just the log line reading the wrong key. Now logs the real title in the 'enriched' line, the fetch-failed line, and the current-item status. Cosmetic only — the Trakt sweep itself was working correctly (one-time backfill of the movie catalogue; each row marked once, never loops). --- core/video/enrichment/backfill.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/video/enrichment/backfill.py b/core/video/enrichment/backfill.py index 0e491ae0..d5d0769e 100644 --- a/core/video/enrichment/backfill.py +++ b/core/video/enrichment/backfill.py @@ -216,7 +216,7 @@ class VideoBackfillWorker: item = self.next_item() if not item: return False - self.current_item = {"type": item.get("kind"), "name": item.get("name")} + self.current_item = {"type": item.get("kind"), "name": item.get("title")} try: data = self.fetch(item) except _RateLimited as e: @@ -230,7 +230,7 @@ class VideoBackfillWorker: logger.warning("%s rejected the API key — pausing until fixed", self.display_name) return False except Exception: - logger.exception("video backfill %s fetch failed for %s", self.service, item.get("name")) + logger.exception("video backfill %s fetch failed for %s", self.service, item.get("title")) self.stats["errors"] += 1 self.record_error(item) return True @@ -238,7 +238,7 @@ class VideoBackfillWorker: if data: self.record_ok(item, data) self.stats["matched"] += 1 - logger.info("Enriched %s '%s' via %s", item.get("kind"), item.get("name"), self.display_name) + logger.info("Enriched %s '%s' via %s", item.get("kind"), item.get("title"), self.display_name) else: self.record_empty(item) self.stats["not_found"] += 1