Fix DonnonsBridge image not showing (#2521)

This commit is contained in:
Binnette 2022-03-23 21:04:12 +01:00 committed by Eugene Molotov
parent 26f0380aaa
commit 076c413d3e

View file

@ -66,7 +66,9 @@ class DonnonsBridge extends BridgeAbstract {
$region = $json['availableAtOrFrom']['address']['addressRegion'];
// Grab info from HTML
$imageSrc = $element->find('img.ima-center', 0)->getAttribute('data-src');
$imageSrc = $element->find('img.ima-center', 0)->getAttribute('src');
// Use large image instead of small one
$imageSrc = str_replace("/xs/", "/lg/", $imageSrc);
$image = self::URI . $imageSrc;
$author = $element->find('div.avatar-holder', 0)->plaintext;