Repository navigation
feat(metadata): send movies' earliest digital and physical release dates - #35
Conversation
Silo lists a movie on its calendar on the earlier of its primary and digital release dates. TMDB already returns per-country release dates with the movie; pick the earliest digital one (release type 4) in any country and send it as the digital_release_date metadata key. Hosts that do not read the key ignore it.
Silo's calendar lists a movie on its first home release, digital or disc. Send the earliest physical release (TMDB type 5) in any country as the physical_release_date metadata key, beside digital_release_date.
|
Caution Review failedThe pull request is closed. Walkthrough
Merge Risk:
|
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
Quick104
left a comment
There was a problem hiding this comment.
🤖 Claude Code (claude-opus-5-5)
The change does what it says: the test fails on main and passes here. I found one gap in the test, noted inline. The summary comment covers everything else.
The fixture's "not a date" sorted after every real date, so the test passed even with the parse guard in earliestRelease removed. A month-13 date sorts before the expected digital date and fails without the guard. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Silo Kody — review completeReview finished. Check the inline comments for findings and verify each suggestion against the code and tests. Reviewing changes in Silo
Review settingsReview OptionsThe following review options are enabled or disabled:
|
|
🤖 Claude Code (claude-opus-5-5) Review summaryReviewed head: Fit: 8/10 · Readiness: 9/10 — conditional (assuming CI is green) Addressed
What I checked
Left for the maintainers
Validated featuresNo passed validation case changes with this PR alone: hosts that don't read the new keys ignore them. The calendar cases change once silo-server#3240 merges, and that PR already lists them. Validation tasks: none. User manualSilo-Server/siloserver.org#314 and its draft docs PR Silo-Server/siloserver.org#317 already cover the calendar change and mention this PR. This PR on its own changes nothing users can see. Apple and AndroidNot applicable to a metadata plugin. The app follow-ups for the new badges are tracked from silo-server#3240. Scores
|
Problem
Related issue: Silo-Server/silo-apple#944
Silo's calendar lists each movie on its primary release date, which is usually the theatrical one. A theatrical release can't reach a media server, so users see movies on days when nothing becomes available to them. Silo is moving the calendar to a movie's first home release, digital or disc. To do that it needs those dates from this plugin.
Approach
The plugin already asks TMDB for
release_dateswith every movie, but it only used them to pick the content rating. Now it also picks the earliest digital release (TMDB type 4) and the earliest physical release (type 5) in any country. It sends them asdigital_release_dateandphysical_release_date(YYYY-MM-DD) in the movie'smetadataStruct, the same way it already sendskeywords. No SDK or protocol change is needed. Hosts that don't read the keys ignore them.TMDB reports each release as a midnight-UTC timestamp, so the date part is the release day. Entries with a date that doesn't parse are skipped.
The server side is Silo-Server/silo-server#3240.
Validation
go test ./...andgo vet ./...pass.GetMetadatawire test now feeds release dates from several countries and types, including an unparseable one, and checks that both keys carry the earliest date of their type.Risks
None identified. The plugin requests nothing new from TMDB, and the new keys are additive. A host needs the matching silo-server change before the calendar uses them.
Checklist
AI Disclosure
Note
Add earliest digital and physical movie release dates to
MetadataResultdigitalandphysicalrelease-date string fields toMetadataResultin types.go, using TMDB release types in YYYY-MM-DD formatearliestReleasehelper in provider.go scans release dates across all countries, skips entries with the wrong type or unparseable dates, and returns the earliest valid date (empty string if none)Macroscope summarized badf695.