1
0
Fork 0
forked from blallo/rss-bridge

NumeramaBridge: uncaught error fix issue #287

This commit is contained in:
Mitsukarenai 2016-07-18 20:57:27 +02:00
parent b0892fdb70
commit 95acb218b4

View file

@ -21,7 +21,7 @@ class NumeramaBridge extends BridgeAbstract{
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 = '<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