Browse Source

[WordPressBridge] add another case of content extraction

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
Pierre Mazière 7 năm trước cách đây
mục cha
commit
43ac961284
1 tập tin đã thay đổi với 5 bổ sung0 xóa
  1. 5 0
      bridges/WordPressBridge.php

+ 5 - 0
bridges/WordPressBridge.php

@@ -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);