[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 5 deletions

View File

@ -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(