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:
1 parent
260282a0e2
commit
ce01dc34fa
14 files changed
+293
-45
No files matched your search
@@ -10,16 +10,17 @@ const Credit = sequelize.define("credits",
|
||||
adult: { type: DataTypes.BOOLEAN, defaultValue: false },
|
||||
profile_path: { type: DataTypes.STRING(200), field: 'profile_path' },
|
||||
|
||||
character: { type: DataTypes.STRING(100) },
|
||||
character: { type: DataTypes.STRING(500) },
|
||||
order: { type: DataTypes.INTEGER },
|
||||
|
||||
episode_count: { type: DataTypes.INTEGER, defaultValue: null },
|
||||
|
||||
cast_type: { type: DataTypes.ENUM('cast', 'crew'), field: 'cast_type', defaultValue: 'cast' },
|
||||
department: { type: DataTypes.STRING(100) },
|
||||
job: { type: DataTypes.STRING(100) },
|
||||
job: { type: DataTypes.STRING(500) },
|
||||
|
||||
entry_id: { type: DataTypes.INTEGER, field: 'entry_id' },
|
||||
people_id: { type: DataTypes.INTEGER, field: 'people_id' },
|
||||
}
|
||||
);
|
||||
|
||||
module.exports = Credit;
|
||||
module.exports = Credit;
|
||||
Reference in new issue
Block a user