From 151b18f5a2da1557ea67cc460374e7a5334a04c4 Mon Sep 17 00:00:00 2001 From: rainyday Date: Mon, 22 Nov 2010 16:44:06 +0800 Subject: [PATCH] Fixed somethingawful plugin. --- plugins/somethingawful.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/somethingawful.py b/plugins/somethingawful.py index fda1755..472f05c 100644 --- a/plugins/somethingawful.py +++ b/plugins/somethingawful.py @@ -36,7 +36,7 @@ def forum_link(inp, bot=None): thread_title = breadcrumbs[-1] forum_title = forum_abbrevs.get(breadcrumbs[-2], breadcrumbs[-2]) - poster = thread.xpath('//dt[@class="author"]/text()')[0] + poster = thread.xpath('//dt[contains(@class, op)]//text()')[0] # 1 post per page => n_pages = n_posts num_posts = thread.xpath('//a[@title="last page"]/@href')