Fixed error in ashwinder from using a different skin.

This commit is contained in:
Ida 2012-06-16 18:45:48 -04:00
parent 3e1a4068cb
commit 1ce45cfe5c

View file

@ -157,7 +157,7 @@ class AshwinderSycophantHexComAdapter(BaseSiteAdapter):
except:
pass
for info in asoup.findAll('table', {'bordercolor' : '#1A1919','width' : '100%'}):
for info in asoup.findAll('table', {'width' : '100%', 'bordercolor' : re.compile(r'#')}):
a = info.find('a', href=re.compile(r'viewstory.php\?sid='+self.story.getMetadata('storyId')+"$"))
if a != None:
self.story.setMetadata('title',a.string)
@ -189,7 +189,6 @@ class AshwinderSycophantHexComAdapter(BaseSiteAdapter):
for cat in cats:
self.story.addToList('category',cat.string)
logging.debug(info)
a = info.find('a', href=re.compile(r'reviews.php\?sid='+self.story.getMetadata('storyId')))
val = a.nextSibling
svalue = ""