[Metadata][XBMC] Add images to nfo
This commit is contained in:
1 parent
2c1c57333c
commit
bd1bb1ee91
1 file changed
+9
@@ -112,6 +112,15 @@ class XBMC(MetaDataBase):
|
|||||||
sorttitle = SubElement(nfoxml, 'sorttitle')
|
sorttitle = SubElement(nfoxml, 'sorttitle')
|
||||||
sorttitle.text = '%s %s' % (toUnicode(collection_name), movie_info.get('year'))
|
sorttitle.text = '%s %s' % (toUnicode(collection_name), movie_info.get('year'))
|
||||||
|
|
||||||
|
# Images
|
||||||
|
for image_url in movie_info['images']['poster_original']:
|
||||||
|
image = SubElement(nfoxml, 'thumb')
|
||||||
|
image.text = toUnicode(image_url)
|
||||||
|
fanart = SubElement(nfoxml, 'fanart')
|
||||||
|
for image_url in movie_info['images']['backdrop_original']:
|
||||||
|
image = SubElement(fanart, 'thumb')
|
||||||
|
image.text = toUnicode(image_url)
|
||||||
|
|
||||||
# Add trailer if found
|
# Add trailer if found
|
||||||
trailer_found = False
|
trailer_found = False
|
||||||
if data.get('renamed_files'):
|
if data.get('renamed_files'):
|
||||||
|
|||||||
Reference in new issue
Block a user