forked from blallo/rss-bridge
NumeramaBridge: uncaught error fix issue #287
This commit is contained in:
parent
b0892fdb70
commit
95acb218b4
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ class NumeramaBridge extends BridgeAbstract{
|
||||||
|
|
||||||
function NumeramaExtractContent($url)
|
function NumeramaExtractContent($url)
|
||||||
{
|
{
|
||||||
$html2 = $this->file_get_html($url);
|
$html2 = file_get_html($url);
|
||||||
$text = $html2->find('section[class=related-article]', 0)->innertext = ''; // remove related articles block
|
$text = $html2->find('section[class=related-article]', 0)->innertext = ''; // remove related articles block
|
||||||
$text = '<img alt="" style="max-width:300px;" src="'.$html2->find('meta[property=og:image]', 0)->getAttribute('content').'">'; // add post picture
|
$text = '<img alt="" style="max-width:300px;" src="'.$html2->find('meta[property=og:image]', 0)->getAttribute('content').'">'; // add post picture
|
||||||
$text = $text.$html2->find('article[class=post-content]', 0)->innertext; // extract the post
|
$text = $text.$html2->find('article[class=post-content]', 0)->innertext; // extract the post
|
||||||
|
|
Loading…
Reference in a new issue