chore: consistently reference ids
This commit is contained in:
parent
7e1a55754b
commit
c83aea01f8
3 changed files with 4 additions and 4 deletions
|
@ -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,
|
||||
|
|
Reference in a new issue