From 5e161486ffa151d2be1830ac75792ede803b49de Mon Sep 17 00:00:00 2001 From: Luke Rogers Date: Wed, 4 Sep 2013 20:30:26 +1200 Subject: [PATCH] unstandardised that one bit --- plugins/drama.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/drama.py b/plugins/drama.py index ffe1213..6883372 100755 --- a/plugins/drama.py +++ b/plugins/drama.py @@ -19,11 +19,11 @@ def drama(inp): url = ed_url + http.quote(article_name, '') page = http.get_html(url) - for p in page.xpath('//div[@class="mw-content-ltr"]/p'): + for p in page.xpath('//div[@id="bodyContent"]/p'): if p.text_content(): summary = " ".join(p.text_content().splitlines()) summary = re.sub("\[\d+\]", "", summary) - summary = text.truncate_str(summary, 200) + summary = text.truncate_str(summary, 220) return "%s :: %s" % (summary, url) return "Unknown Error."