feat(backend): fix credit duplicates, support multi-role TV credits, fix collection upload

- Fix credit dedup key to people_id + cast_type (scoped to entry_id)
- Detect aggregate_credits format via Array.isArray(c.roles) instead of is_tvseries flag
- Join multiple roles/jobs with "; " instead of taking only the first
- Add episode_count field to Credit model from total_episode_count
- Increase character and job columns to VARCHAR(500)
- Deselect existing collection posters/backdrops before inserting new upload
- Updated docs-vault
- Updated some agents files
This commit is contained in:
Mohammed Abad committed 2026-04-23 16:51:18 +01:00
1 parent 260282a0e2
commit ce01dc34fa
14 files changed
+293 -45

No files matched your search

+3
View File
@@ -41,6 +41,9 @@ Users can create custom collections:
- Poster and backdrop (upload via multipart)
- Add/remove entries, reorder
> [!info] Media Upload Behavior
> When a new poster or backdrop is uploaded for a collection, all existing media of the same type are deselected (`isSelected = false`) before the new one is created with `isSelected = true`. This ensures only the latest upload is active.
## API Endpoints
See [[API Reference#Collections]].