Fixed MediaBase.getPoster(), switched MovieBase to use this generic method
This commit is contained in:
1 parent
a1ce3e0d6b
commit
a821d85bf2
2 files changed
+8
-31
No files matched your search
Regular → Executable
+6
-3
@@ -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
|
||||
|
||||
Reference in new issue
Block a user