feat(api): expose optional account-scoped title availability

This commit is contained in:
Jakub Rybakowski
2026-11-23 18:54:36 -06:00
committed by GitHub
parent c818ec3bbe
commit 661be3ee0d
6 changed files with 104 additions and 0 deletions
+13
View File
@@ -335,6 +335,19 @@ def get_titles(self) -> Titles_T:
])
```
### Optional availability metadata
A service may set `title.data["availability"]` to a dict with two optional fields:
- `paid`: a boolean describing the catalogue offer, not the account's entitlement.
- `access`: `"granted"`, `"denied"`, or `"unknown"` for the authenticated account.
Report `"denied"` only when the platform explicitly confirms lack of access.
Missing or unverified access is not denial.
Only these allowlisted fields reach the REST API as `availability`, including
through remote title reconstruction. The CLI's `--list-titles` does not display
them, and nothing in core reads them to select or authorize downloads.
Common constructor fields:
=== "Movie"