From bd1bb1ee9172d91666cc91fdd783c7c6ec4dd872 Mon Sep 17 00:00:00 2001 From: mano3m Date: Tue, 19 Nov 2013 18:30:09 +0100 Subject: [PATCH] [Metadata][XBMC] Add images to nfo --- couchpotato/core/providers/metadata/xbmc/main.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/couchpotato/core/providers/metadata/xbmc/main.py b/couchpotato/core/providers/metadata/xbmc/main.py index e287cbd8..09e523aa 100644 --- a/couchpotato/core/providers/metadata/xbmc/main.py +++ b/couchpotato/core/providers/metadata/xbmc/main.py @@ -112,6 +112,15 @@ class XBMC(MetaDataBase): sorttitle = SubElement(nfoxml, 'sorttitle') 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 trailer_found = False if data.get('renamed_files'):