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

View File

@ -290,6 +290,10 @@ def download_url(url):
# well, at least save the contents from the original url # well, at least save the contents from the original url
pass pass
# make the title again just in case
if not title:
title = "%0.2x" % random.getrandbits(128)
# can't create directories # can't create directories
title = title.replace("/", "_") title = title.replace("/", "_")