mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-29 14:48:52 +03:00
fix: more verbose error in fb (#3089)
This commit is contained in:
parent
44e5bf5338
commit
5d18852108
1 changed files with 13 additions and 7 deletions
|
@ -553,7 +553,8 @@ EOD;
|
||||||
$header = [];
|
$header = [];
|
||||||
}
|
}
|
||||||
|
|
||||||
$html = getSimpleHTMLDOM($this->getURI(), $header);
|
$url = $this->getURI();
|
||||||
|
$html = getSimpleHTMLDOM($url, $header);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handle captcha form?
|
// Handle captcha form?
|
||||||
|
@ -571,8 +572,13 @@ EOD;
|
||||||
returnServerError('You must be logged in to view this page. This is not supported by RSS-Bridge.');
|
returnServerError('You must be logged in to view this page. This is not supported by RSS-Bridge.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$element = $html
|
file_put_contents('/tmp/a.html', "$html");
|
||||||
->find('#pagelet_timeline_main_column')[0]
|
$mainColumn = $html->find('#pagelet_timeline_main_column');
|
||||||
|
if (!$mainColumn) {
|
||||||
|
throw new \Exception(sprintf('Unable to find anything useful in %s', $url));
|
||||||
|
}
|
||||||
|
|
||||||
|
$element = $mainColumn[0]
|
||||||
->children(0)
|
->children(0)
|
||||||
->children(0)
|
->children(0)
|
||||||
->next_sibling()
|
->next_sibling()
|
||||||
|
|
Loading…
Reference in a new issue