Code cleanup

This commit is contained in:
Ruud committed 2013-09-02 21:59:06 +02:00
1 parent 7d32a8750d
commit 7fd14e0283
59 files changed
+171 -170

No files matched your search

+5 -2
View File
@@ -82,8 +82,11 @@ class MetaDataBase(Plugin):
def getThumbnail(self, movie_info = {}, data = {}, wanted_file_type = 'poster_original'):
file_types = fireEvent('file.types', single = True)
for file_type in file_types:
if file_type.get('identifier') == wanted_file_type:
file_type = {}
for ft in file_types:
if ft.get('identifier') == wanted_file_type:
file_type = ft
break
# See if it is in current files