From b16e83390823660e8e5507c54ab81804641e47dd Mon Sep 17 00:00:00 2001 From: Ryan Hitchman Date: Sat, 16 Feb 2013 23:54:35 -0600 Subject: [PATCH] fix somethingawful post count --- plugins/somethingawful.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/somethingawful.py b/plugins/somethingawful.py index 84bda1f..7857f05 100644 --- a/plugins/somethingawful.py +++ b/plugins/somethingawful.py @@ -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