mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2025-11-09 18:06:35 +00:00
Handle musicvideo artists as actors
This commit is contained in:
parent
a112613d84
commit
05a6b16dcb
2 changed files with 4 additions and 6 deletions
|
|
@ -146,10 +146,6 @@ class Kodi(object):
|
|||
sql = QU.update_link.replace("{LinkType}", 'writer_link')
|
||||
bulk_updates.setdefault(sql, []).append((person_id,) + args)
|
||||
|
||||
elif person['Type'] == 'Artist':
|
||||
sql = QU.update_link.replace("{LinkType}", 'actor_link')
|
||||
bulk_updates.setdefault(sql, []).append((person_id,) + args)
|
||||
|
||||
add_thumbnail(person_id, person, person['Type'])
|
||||
|
||||
for sql, parameters in bulk_updates.items():
|
||||
|
|
|
|||
|
|
@ -113,9 +113,11 @@ class MusicVideos(KodiDb):
|
|||
obj['Premiere'] = str(obj['Premiere']).split('.')[0].replace('T', " ")
|
||||
|
||||
for artist in obj['ArtistItems']:
|
||||
artist['Type'] = "Artist"
|
||||
artist['Type'] = "Actor"
|
||||
|
||||
obj['People'] = obj['People'] or [] + obj['ArtistItems']
|
||||
obj['People'] = (obj['People'] or []) + obj['ArtistItems']
|
||||
for person in obj['People']:
|
||||
person['Role'] = person.get('Role', '')
|
||||
obj['People'] = API.get_people_artwork(obj['People'])
|
||||
|
||||
if obj['Index'] is None and obj['SortTitle'] is not None:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue