allow unicode in filenames when returning a url
This commit is contained in:
parent
05669229c4
commit
0253a0a9db
@ -270,6 +270,7 @@ def download_url(url):
|
|||||||
file_handler.write(content)
|
file_handler.write(content)
|
||||||
file_handler.close()
|
file_handler.close()
|
||||||
|
|
||||||
|
title = title.encode("ascii", "ignore")
|
||||||
url = "http://diyhpl.us/~bryan/papers2/paperbot/" + requests.utils.quote(title) + extension
|
url = "http://diyhpl.us/~bryan/papers2/paperbot/" + requests.utils.quote(title) + extension
|
||||||
|
|
||||||
return url
|
return url
|
||||||
|
Loading…
Reference in New Issue
Block a user