From 426aa359628ed486560f1e428cd6ed84f21436ba Mon Sep 17 00:00:00 2001 From: Andreas Bielawski Date: Tue, 13 Sep 2016 00:11:53 +0200 Subject: [PATCH] =?UTF-8?q?Kommentar=20in=20AP=20entfernt,=20da=20ich=20je?= =?UTF-8?q?tzt=20wei=C3=9F=20wie's=20geht...=20aber=20leider=20funktionier?= =?UTF-8?q?t=20es=20mit=20den=20langen=20IDs=20nicht=20T=5FT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- otouto/plugins/ap.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/otouto/plugins/ap.lua b/otouto/plugins/ap.lua index 48fd8f0..95a1ef0 100644 --- a/otouto/plugins/ap.lua +++ b/otouto/plugins/ap.lua @@ -11,9 +11,7 @@ function ap:get_article(article) local headline = res:match('(.-)') if not headline then return end - - -- TODO: How to match all occurences? AP uses the same class for all paragraphs - -- but string.match only returns the first one oO + local article = unescape(utilities.trim(res:match('

(.-)

'))) local pic_url = res:match('