return list
This commit is contained in:
parent
70710d8446
commit
616b255197
1 changed files with 2 additions and 1 deletions
|
@ -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 = []
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue