1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-08-02 22:57:26 +02:00

[FicbookBridge] Fix data getting and months (#1765)

This commit is contained in:
Ololbu
2020-09-28 14:02:40 +05:00
committed by GitHub
parent 01985b7af7
commit 3df2de4c6f

View File

@@ -84,7 +84,7 @@ class FicbookBridge extends BridgeAbstract {
} }
private function collectCommentsData($html) { private function collectCommentsData($html) {
foreach($html->find('article.post') as $article) { foreach($html->find('article.comment-container') as $article) {
$this->items[] = array( $this->items[] = array(
'uri' => $article->find('.comment_link_to_fic > a', 0)->href, 'uri' => $article->find('.comment_link_to_fic > a', 0)->href,
'title' => $article->find('.comment_author', 0)->plaintext, 'title' => $article->find('.comment_author', 0)->plaintext,
@@ -97,7 +97,7 @@ class FicbookBridge extends BridgeAbstract {
} }
private function collectUpdatesData($html) { 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( $item = array(
'uri' => $chapter->find('a', 0)->href, 'uri' => $chapter->find('a', 0)->href,
'title' => $chapter->find('a', 0)->plaintext, 'title' => $chapter->find('a', 0)->plaintext,
@@ -130,10 +130,10 @@ class FicbookBridge extends BridgeAbstract {
'июня', 'июня',
'июля', 'июля',
'августа', 'августа',
'Сентября', 'сентября',
'октября', 'октября',
'Ноября', 'ноября',
'Декабря', 'декабря',
); );
$en_month = array( $en_month = array(