Commit d9074b55 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Fixed some display URLs

parent 66a7c376
......@@ -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();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment