Skip to content

Commit

Permalink
[FicbookBridge] Fix data getting and months (#1765)
Browse files Browse the repository at this point in the history
Ololbu authored Sep 28, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 01985b7 commit 3df2de4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bridges/FicbookBridge.php
Original file line number Diff line number Diff line change
@@ -84,7 +84,7 @@ private function collectSiteNews($html) {
}

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 @@ private function collectCommentsData($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(
'uri' => $chapter->find('a', 0)->href,
'title' => $chapter->find('a', 0)->plaintext,
@@ -130,10 +130,10 @@ private function fixDate($date) {
'июня',
'июля',
'августа',
'Сентября',
'сентября',
'октября',
'Ноября',
'Декабря',
'ноября',
'декабря',
);

$en_month = array(

0 comments on commit 3df2de4

Please sign in to comment.