mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-26 11:26:31 +03:00
[NeuviemeArtBridge] code simplification
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
9c1c29ec74
commit
b547285b88
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ class NeuviemeArtBridge extends BridgeAbstract {
|
|||
} return $string;
|
||||
}
|
||||
|
||||
$feedUrl = 'http://www.9emeart.fr/9emeart.rss';
|
||||
$feedUrl = $this->uri.'9emeart.rss';
|
||||
$html = $this->getSimpleHTMLDOM($feedUrl) or $this->returnServerError('Could not request 9eme Art: '.$feedUrl);
|
||||
$limit = 0;
|
||||
|
||||
|
@ -32,9 +32,9 @@ class NeuviemeArtBridge extends BridgeAbstract {
|
|||
$article_image = $element->find('enclosure', 0)->url;
|
||||
foreach ($article_html->find('img.img_full') as $img)
|
||||
if ($img->alt == $article_title)
|
||||
$article_image = 'http://www.9emeart.fr'.$img->src;
|
||||
$article_image = $this->uri.$img->src;
|
||||
$article_content = '<p><img src="'.$article_image.'" /></p>'
|
||||
.str_replace('src="/', 'src="http://www.9emeart.fr/', $article_html->find('div.newsGenerique_con', 0)->innertext);
|
||||
.str_replace('src="/', 'src="'.$this->uri, $article_html->find('div.newsGenerique_con', 0)->innertext);
|
||||
$article_content = StripWithDelimiters($article_content, '<script', '</script>');
|
||||
$article_content = StripWithDelimiters($article_content, '<style', '</style>');
|
||||
$article_content = StripWithDelimiters($article_content, '<link', '>');
|
||||
|
|
Loading…
Reference in a new issue