mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 08:28:46 +00:00
Anti-hotlinking was apparently disabled
It seems that anti-hotlinking method (data-src + JS) was disabled on Rue89 site. Because I'm not sure that modification is permanent, I put an "if" for testing it before replacement. --> tested ok on my rssbridge instance. IMG are back.
This commit is contained in:
parent
d39336525d
commit
9f93656bf4
@ -21,7 +21,8 @@ class Rue89Bridge extends BridgeAbstract{
|
|||||||
//$text = $html2->find('div[class=text]', 0)->innertext;
|
//$text = $html2->find('div[class=text]', 0)->innertext;
|
||||||
|
|
||||||
foreach($html2->find('img') as $image) {
|
foreach($html2->find('img') as $image) {
|
||||||
$image->src = $image->getAttribute('data-src');
|
$src = $image->getAttribute('data-src');
|
||||||
|
if($src) $image->src = $src;
|
||||||
}
|
}
|
||||||
$text = $html2->find('div.content', 0)->innertext;
|
$text = $html2->find('div.content', 0)->innertext;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user