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('