From 616b2551972add453bad2b1f0d6e314fd8bee6de Mon Sep 17 00:00:00 2001 From: j Date: Fri, 23 Sep 2016 12:48:02 +0200 Subject: [PATCH] return list --- ox/movie.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ox/movie.py b/ox/movie.py index c46605b..23211ae 100644 --- a/ox/movie.py +++ b/ox/movie.py @@ -188,6 +188,7 @@ def parse_path(path, directory_key='director'): # TODO: '.com.avi' ''' + def parse_type(string): for type in EXTENSIONS: if string in EXTENSIONS[type]: @@ -360,7 +361,7 @@ def parse_movie_path(path): director = "%s." % director[:-1] director = director.split('; ') 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: director = []