Commit 220d9e83 authored by Michael Murtaugh's avatar Michael Murtaugh
Browse files

utf-8 errors, urlencode

parent d910bc58
......@@ -209,7 +209,7 @@ FolderMeta = Builder(action=make_folder_meta)
def ffmpeg_get_meta (target, source, env):
d = ffmpeg_get_info(source[0].path)
d['id'] = urlquote(os.path.basename(source[0].path))
d['id'] = urlquote(os.path.basename(source[0].path), errors="replace")
def relurl(x):
return urlquote(os.path.relpath(str(x), os.path.dirname(os.path.dirname(os.path.dirname(target[0].path)))))
for s in source[1:]:
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment