movie.py: strip whitespace from beginning and end of path parts
This commit is contained in:
parent
66b407a6fa
commit
11aa3f2180
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ def parse_path(path):
|
|||
string = re.sub('(?<=\w)_ ', ': ', string)
|
||||
return string
|
||||
data = {}
|
||||
parts = map(parse_underscores, path.split('/'))
|
||||
parts = map(lambda x: parse_underscores(x.strip()), path.split('/'))
|
||||
# subdirectory
|
||||
if len(parts) > 4:
|
||||
data['subdirectory'] = '/'.join(parts[3:-1])
|
||||
|
|
Loading…
Reference in a new issue