fix somethingawful post count
This commit is contained in:
parent
a29dffbfb7
commit
b16e833908
|
@ -41,7 +41,7 @@ def forum_link(inp, bot=None):
|
||||||
poster = thread.xpath('//dt[contains(@class, author)]//text()')[0]
|
poster = thread.xpath('//dt[contains(@class, author)]//text()')[0]
|
||||||
|
|
||||||
# 1 post per page => n_pages = n_posts
|
# 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:
|
if not num_posts:
|
||||||
num_posts = 1
|
num_posts = 1
|
||||||
|
|
Loading…
Reference in New Issue