ox.movie.parse_path expects unicode
This commit is contained in:
parent
17dbb03b95
commit
fd625da847
1 changed files with 2 additions and 0 deletions
|
@ -92,6 +92,8 @@ def parse_path(client, path):
|
||||||
'''
|
'''
|
||||||
if len(path.split('/')) != client.folderdepth:
|
if len(path.split('/')) != client.folderdepth:
|
||||||
return None
|
return None
|
||||||
|
if not isinstance(path, unicode):
|
||||||
|
path = path.decode('utf-8')
|
||||||
info = ox.movie.parse_path(path)
|
info = ox.movie.parse_path(path)
|
||||||
if client.folderdepth == 3:
|
if client.folderdepth == 3:
|
||||||
info['director'] = []
|
info['director'] = []
|
||||||
|
|
Loading…
Reference in a new issue