Ingest and self-host company/network logos
CI / lint (push) Canceled after 0s
CI / typecheck (push) Canceled after 0s
CI / unit-tests (push) Canceled after 0s
CI / integration-tests (push) Canceled after 0s
CI / container-build (push) Canceled after 0s
CI / dependency-audit (push) Canceled after 0s
CI / lint (push) Canceled after 0s
CI / typecheck (push) Canceled after 0s
CI / unit-tests (push) Canceled after 0s
CI / integration-tests (push) Canceled after 0s
CI / container-build (push) Canceled after 0s
CI / dependency-audit (push) Canceled after 0s
CompanyBriefOut.logo_path and CompanyDetailOut.logo_path have existed in the API schemas since Core 0.1's first pass, but nothing ever actually populated them -- TMDb's production_companies/networks entries carry a logo_path field that the normalizer simply never read, so every response has silently returned null there. - NormalizedCompanyRef now captures logo_path from both movie production_companies and series networks/production_companies. - normalizer.company_logo_artwork() builds the single-image artwork entry for it (a company has exactly one logo ingested, so it's always is_primary) -- centralized there rather than duplicated in both ingestion modules, matching how movie/series artwork URLs are already built in one place. - movie_ingestion.py and series_ingestion.py sync it via the same sync_artwork() the rest of section 10's self-hosting already uses, so it gets the same re-ingestion-safe upsert behavior for free. - tasks.py cascades a download_artwork_task per referenced company after movie/series ingestion, same fan-out pattern as movie/series/season/person artwork. Co-Authored-By: Claude Sonnet 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Sonnet 5
parent
69ce41d54f
commit
c03a75989d
+5
-2
@@ -82,8 +82,11 @@ automatically once it has.
|
||||
|
||||
Only artwork marked `is_primary` gets downloaded automatically — the single
|
||||
image the provider designates as *the* image for an entity (TMDb's
|
||||
`poster_path`/`backdrop_path`/`profile_path`), not the dozens of alternates
|
||||
also stored. `app/services/ingestion/runner.py:get_primary_artwork_for_download`
|
||||
`poster_path`/`backdrop_path`/`profile_path`/`logo_path`), not the dozens of
|
||||
alternates also stored. This includes company/network logos (a company has
|
||||
exactly one ingested, so it's always primary) — cascaded per-movie/series
|
||||
since companies aren't independently ingested the way movies/series/people
|
||||
are. `app/services/ingestion/runner.py:get_primary_artwork_for_download`
|
||||
finds them and `app/workers/tasks.py` enqueues a `download_artwork_task` per
|
||||
id once movie/series/person/season ingestion succeeds — see
|
||||
`docs/architecture.md` for the full flow.
|
||||
|
||||
Reference in New Issue
Block a user