return list

This commit is contained in:
j 2016-09-23 12:48:02 +02:00
parent 70710d8446
commit 616b255197

View file

@ -188,6 +188,7 @@ def parse_path(path, directory_key='director'):
# TODO: '.com.avi' # TODO: '.com.avi'
''' '''
def parse_type(string): def parse_type(string):
for type in EXTENSIONS: for type in EXTENSIONS:
if string in EXTENSIONS[type]: if string in EXTENSIONS[type]:
@ -360,7 +361,7 @@ def parse_movie_path(path):
director = "%s." % director[:-1] director = "%s." % director[:-1]
director = director.split('; ') director = director.split('; ')
director = [normalize_name(d).strip() for d in director] director = [normalize_name(d).strip() for d in director]
director = filter(lambda d: d not in ('Unknown Director', 'Various Directors'), director) director = list(filter(lambda d: d not in ('Unknown Director', 'Various Directors'), director))
else: else:
director = [] director = []