[Metadata][XBMC] Update new actors to actor_roles

This commit is contained in:
mano3m committed 2013-12-07 15:09:23 +01:00
1 parent 1b5bc1fa05
commit f0bde7316d
3 files changed
+16 -7

No files matched your search

@@ -84,6 +84,10 @@ class OMDBAPI(MovieProvider):
year = tryInt(movie.get('Year', ''))
actors = {}
for actor in splitString(movie.get('Actors', '')):
actors[actor] = '' #omdb does not return actor roles
movie_data = {
'type': 'movie',
'via_imdb': True,
@@ -105,7 +109,7 @@ class OMDBAPI(MovieProvider):
'genres': splitString(movie.get('Genre', '')),
'directors': splitString(movie.get('Director', '')),
'writers': splitString(movie.get('Writer', '')),
'actors': [{actor: ''} for actor in splitString(movie.get('Actors', ''))],
'actor_roles': actors,
}
movie_data = dict((k, v) for k, v in movie_data.iteritems() if v)
except: