fix somethingawful post count

This commit is contained in:
Ryan Hitchman 2013-02-16 23:54:35 -06:00
parent a29dffbfb7
commit b16e833908
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ def forum_link(inp, bot=None):
poster = thread.xpath('//dt[contains(@class, author)]//text()')[0]
# 1 post per page => n_pages = n_posts
num_posts = thread.xpath('//a[@title="last page"]/@href')
num_posts = thread.xpath('//a[@title="Last page"]/@href')
if not num_posts:
num_posts = 1