Ensure that there always is a title

This commit is contained in:
Sam Ruby 2010-06-22 17:18:17 -04:00
parent 369c6c0d64
commit c8d3ac27c0

View File

@ -410,6 +410,7 @@ for i in range(0,len(weighted_links)):
# otherwise, parse the html
if not title:
title = html(revmap.get(link,link)).title
if not title: title = link.strip('/').split('/')[-1]
# dehtmlize
title = re.sub('&(\w+);',