chore: consistently reference ids

This commit is contained in:
Cory Dransfeldt 2024-08-24 08:37:05 -07:00
parent 7e1a55754b
commit c83aea01f8
No known key found for this signature in database
3 changed files with 4 additions and 4 deletions

View file

@ -66,7 +66,7 @@ const processMovies = (movies) => {
id: item['tmdb_id'],
type: 'movie',
tags: item['tags'] ? item['tags'].split(',') : [],
artists: item['artists']?.[0]?.['name'] ? item['artists'].map(artist => {
artists: item['artists']?.[0]?.['id'] ? item['artists'].map(artist => {
artist['url'] = `/music/artists/${sanitizeMediaString(artist['name'])}-${sanitizeMediaString(parseCountryField(artist['country']))}`
return artist
}).sort((a, b) => a['name'].localeCompare(b['name'])) : null,