From 960e86327e716e9090ddefc5b541e1d6f27507fc Mon Sep 17 00:00:00 2001 From: Bryan Bishop Date: Mon, 15 Apr 2013 01:13:49 -0500 Subject: [PATCH] use a random title if title extraction fails --- modules/papers.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/papers.py b/modules/papers.py index 3504222..00a5f66 100644 --- a/modules/papers.py +++ b/modules/papers.py @@ -290,6 +290,10 @@ def download_url(url): # well, at least save the contents from the original url pass + # make the title again just in case + if not title: + title = "%0.2x" % random.getrandbits(128) + # can't create directories title = title.replace("/", "_")