Fixed somethingawful plugin.

This commit is contained in:
rainyday 2010-11-22 16:44:06 +08:00 committed by rmmh
parent 83a94fe75f
commit 151b18f5a2
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ def forum_link(inp, bot=None):
thread_title = breadcrumbs[-1] thread_title = breadcrumbs[-1]
forum_title = forum_abbrevs.get(breadcrumbs[-2], breadcrumbs[-2]) 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 # 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')