Director and writers
This commit is contained in:
1 parent
79ad9e3e2e
commit
625bd9db70
2 files changed
+12
-1
No files matched your search
@@ -86,6 +86,16 @@ class XBMC(MetaDataBase):
|
|||||||
name = SubElement(actors, 'name')
|
name = SubElement(actors, 'name')
|
||||||
name.text = toUnicode(actor)
|
name.text = toUnicode(actor)
|
||||||
|
|
||||||
|
# Directors
|
||||||
|
for director in movie_info.get('directors', []):
|
||||||
|
director = SubElement(nfoxml, 'director')
|
||||||
|
director.text = toUnicode(director)
|
||||||
|
|
||||||
|
# Writers
|
||||||
|
for writer in movie_info.get('writers', []):
|
||||||
|
writers = SubElement(nfoxml, 'credits')
|
||||||
|
writers.text = toUnicode(writer)
|
||||||
|
|
||||||
|
|
||||||
# Clean up the xml and return it
|
# Clean up the xml and return it
|
||||||
nfoxml = xml.dom.minidom.parseString(tostring(nfoxml))
|
nfoxml = xml.dom.minidom.parseString(tostring(nfoxml))
|
||||||
|
|||||||
@@ -69,7 +69,8 @@ class IMDBAPI(MovieProvider):
|
|||||||
'year': movie.get('Year', ''),
|
'year': movie.get('Year', ''),
|
||||||
'plot': movie.get('Plot', ''),
|
'plot': movie.get('Plot', ''),
|
||||||
'genres': movie.get('Genre').split(','),
|
'genres': movie.get('Genre').split(','),
|
||||||
'director': movie.get('Director', ''),
|
'director': movie.get('Director', '').split(','),
|
||||||
|
'writer': movie.get('Writer', '').split(','),
|
||||||
'actors': movie.get('Actors', '').split(','),
|
'actors': movie.get('Actors', '').split(','),
|
||||||
}
|
}
|
||||||
except:
|
except:
|
||||||
|
|||||||
Reference in new issue
Block a user