Skip to content
Snippets Groups Projects
Commit 1660b5f1 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Fixed some display URLs

parent eec7c85e
No related branches found
No related tags found
1 merge request!1262WIP: Resolve "Spendenseite Texte anpassen"
...@@ -29,6 +29,13 @@ class Shopzilla extends Searchengine ...@@ -29,6 +29,13 @@ class Shopzilla extends Searchengine
$title = $result->{"title"}->__toString(); $title = $result->{"title"}->__toString();
$link = $result->{"url"}->__toString(); $link = $result->{"url"}->__toString();
$anzeigeLink = $result->{"rawUrl"}->__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(); $descr = $result->{"description"}->__toString();
$image = $result->{"Images"}->{"Image"}[1]->__toString(); $image = $result->{"Images"}->{"Image"}[1]->__toString();
$price = $result->{"price"}->__toString(); $price = $result->{"price"}->__toString();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment