ox.movie.parse_path expects unicode

This commit is contained in:
j 2015-01-25 16:16:41 +05:30
parent 17dbb03b95
commit fd625da847

View file

@ -92,6 +92,8 @@ def parse_path(client, path):
'''
if len(path.split('/')) != client.folderdepth:
return None
if not isinstance(path, unicode):
path = path.decode('utf-8')
info = ox.movie.parse_path(path)
if client.folderdepth == 3:
info['director'] = []