diff options
author | Bryan Bishop <kanzure@gmail.com> | 2013-01-21 11:44:13 -0600 |
---|---|---|
committer | Bryan Bishop <kanzure@gmail.com> | 2013-01-21 11:44:13 -0600 |
commit | e021c543aa81ea667f519c0531344c750e589467 (patch) | |
tree | cdf0e3e9e9b50fbbbf3130667cad0cbf6fff921a | |
parent | eba857dd7e4c0ab12af0bb8d07378f2662f22684 (diff) | |
download | paperbot-e021c543.tar.gz paperbot-e021c543.zip |
make paper titles with slashes work
-rw-r--r-- | modules/papers.py | 3 |
1 files changed, 3 insertions, 0 deletions
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") |