From e021c543aa81ea667f519c0531344c750e589467 Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Mon, 21 Jan 2013 11:44:13 -0600 Subject: [PATCH] make paper titles with slashes work --- modules/papers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/papers.py b/modules/papers.py index 9e97741..0039c14 100644 --- a/modules/papers.py +++ b/modules/papers.py @@ -195,6 +195,9 @@ def download_url(url): # well, at least save the contents from the original url pass + # can't create directories + title = title.replace("/", "_") + path = os.path.join("/home/bryan/public_html/papers2/paperbot/", title + extension) file_handler = open(path, "w")