[WordPressBridge] add another case of content extraction

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-09-15 12:36:24 +02:00
parent b6245a90c8
commit 43ac961284

View file

@ -36,6 +36,11 @@ class WordPressBridge extends FeedExpander {
// another common content div
$article = $article_html->find('.single-content', 0);
break;
case !is_null($article_html->find('.post-content',0)):
// another common content div
$article = $article_html->find('.post-content', 0);
break;
case !is_null($article_html->find('.post',0)):
// for old WordPress themes without HTML5
$article = $article_html->find('.post', 0);