fix parsing of status

This commit is contained in:
Romain Bignon 2011-09-19 10:19:00 +02:00
commit 5909a27006

View file

@ -270,7 +270,7 @@ class ProfilePage(PageBase):
if (div.hasAttribute('style') and if (div.hasAttribute('style') and
div.getAttribute('style') == "font-size:12px;font-weight:bold" and div.getAttribute('style') == "font-size:12px;font-weight:bold" and
hasattr(div.firstChild, 'data')): hasattr(div.firstChild, 'data')):
self.status = div.firstChild.data self.status = div.childNodes[-1].data.strip()
if div.hasAttribute('background'): if div.hasAttribute('background'):
m = self.PHOTO_REGEXP.match(div.getAttribute('background')) m = self.PHOTO_REGEXP.match(div.getAttribute('background'))
if m: if m: