diff --git a/app/Models/parserSkripte/Shopzilla.php b/app/Models/parserSkripte/Shopzilla.php index 66c0b6360ec5bd41b165654476ec1881f620950e..968c552efc689bacc9fb8960bc77895d40481f57 100644 --- a/app/Models/parserSkripte/Shopzilla.php +++ b/app/Models/parserSkripte/Shopzilla.php @@ -29,6 +29,13 @@ class Shopzilla extends Searchengine $title = $result->{"title"}->__toString(); $link = $result->{"url"}->__toString(); $anzeigeLink = $result->{"rawUrl"}->__toString(); + // Try to extract the display Urls: + + if(preg_match("/^http[s]{0,1}:\/\/ad.eanalyzer.de/", $anzeigeLink)){ + $parts = parse_url($anzeigeLink); + parse_str($parts['query'], $query); + $anzeigeLink = $query["url"]; + } $descr = $result->{"description"}->__toString(); $image = $result->{"Images"}->{"Image"}[1]->__toString(); $price = $result->{"price"}->__toString();