From d42821fedae478ae7c3934054c2f88ff1140da76 Mon Sep 17 00:00:00 2001 From: boxdot Date: Tue, 20 May 2014 09:46:19 +0200 Subject: [PATCH] Bugfix in xpath.php Added selector to ej.ru --- mods/ej.ru.json | 2 +- tests/xpath.php | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/mods/ej.ru.json b/mods/ej.ru.json index 4629898..1194793 100644 --- a/mods/ej.ru.json +++ b/mods/ej.ru.json @@ -5,6 +5,6 @@ "match": "ej.ru", "config": { "type": "xpath", - "xpath": "div[@class='txt_e']" + "xpath": "div[@class='text' or @class='txt_e']" } } diff --git a/tests/xpath.php b/tests/xpath.php index 130f288..c99e322 100644 --- a/tests/xpath.php +++ b/tests/xpath.php @@ -1,6 +1,6 @@ $article_url, 'plugin_data' => '' ); -echo fetch_article($article, $config)['content']; +$article = array( 'link' => $article_url ); + +echo fetch_article($article, $config);