Fixed MediaBase.getPoster(), switched MovieBase to use this generic method

This commit is contained in:
Dean Gardiner committed 2014-08-20 14:55:07 +12:00
1 parent a1ce3e0d6b
commit a821d85bf2
2 files changed
+8 -31

No files matched your search

+6 -3
View File
@@ -65,10 +65,13 @@ class MediaBase(Plugin):
return def_title or 'UNKNOWN'
def getPoster(self, image_urls, existing_files):
image_type = 'poster'
def getPoster(self, media, image_urls):
if 'files' not in media:
media['files'] = {}
# Remove non-existing files
existing_files = media['files']
image_type = 'poster'
file_type = 'image_%s' % image_type
# Make existing unique