try:
entity = unichr(int(name))
except:
- if entity[0] == 'x':
+ if name[0] == 'x':
try:
entity = unichr(int('0%s' %(name,), 16))
except:
if item.has_key("content"):
content = item["content"][0]["value"]
else:
- content = item["summary"]
+ if item.has_key("description"):
+ content = item["description"]
+ else:
+ content = u''
md5sum = md5.md5(content.encode("utf-8")).hexdigest()