Fix for adapter_inkbunnynet author search.

This commit is contained in:
Jim Miller 2018-06-15 10:30:06 -05:00
parent fecdc3f114
commit 7fd0ccba45

View file

@ -151,7 +151,7 @@ class InkBunnyNetSiteAdapter(BaseSiteAdapter):
self.story.setMetadata('title', stripHTML(title))
# Get Author
authortag = soup.find_all('table')[4].find('a',href=re.compile(r'/gallery/'))
authortag = soup.find('table',{'class':'pooltable'}).find('a',href=re.compile(r'/gallery/'))
author = authortag['href'].split('/')[-1] # no separate ID
self.story.setMetadata('author', author)
self.story.setMetadata('authorId', author)