From 3df2de4c6f823291484c600e74f9fa594593bc44 Mon Sep 17 00:00:00 2001 From: Ololbu Date: Mon, 28 Sep 2020 14:02:40 +0500 Subject: [PATCH] [FicbookBridge] Fix data getting and months (#1765) --- bridges/FicbookBridge.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bridges/FicbookBridge.php b/bridges/FicbookBridge.php index 8b8a57fc..6a3761d5 100644 --- a/bridges/FicbookBridge.php +++ b/bridges/FicbookBridge.php @@ -84,7 +84,7 @@ class FicbookBridge extends BridgeAbstract { } private function collectCommentsData($html) { - foreach($html->find('article.post') as $article) { + foreach($html->find('article.comment-container') as $article) { $this->items[] = array( 'uri' => $article->find('.comment_link_to_fic > a', 0)->href, 'title' => $article->find('.comment_author', 0)->plaintext, @@ -97,7 +97,7 @@ class FicbookBridge extends BridgeAbstract { } private function collectUpdatesData($html) { - foreach($html->find('ul.table-of-contents > li') as $chapter) { + foreach($html->find('ul.list-of-fanfic-parts > li') as $chapter) { $item = array( 'uri' => $chapter->find('a', 0)->href, 'title' => $chapter->find('a', 0)->plaintext, @@ -130,10 +130,10 @@ class FicbookBridge extends BridgeAbstract { 'июня', 'июля', 'августа', - 'Сентября', + 'сентября', 'октября', - 'Ноября', - 'Декабря', + 'ноября', + 'декабря', ); $en_month = array(