[FicbookBridge] Fix data getting and months (#1765)
This commit is contained in:
parent
01985b7af7
commit
3df2de4c6f
1 changed files with 5 additions and 5 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue