use a random title if title extraction fails

This commit is contained in:
Bryan Bishop 2013-04-15 01:13:49 -05:00
parent 04644364e2
commit 960e86327e
1 changed files with 4 additions and 0 deletions

View File

@ -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("/", "_")