mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-02-16 15:19:55 +03:00
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)
|
||||
{
|
||||
$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
|
||||
|
|
Loading…
Add table
Reference in a new issue