Commit 731d1986 authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Bug in der Fernsehsuche behoben. Dort ist die Suche manchmal abgestürzt

parent a41a272b
......@@ -28,23 +28,27 @@ class Fernsehsuche extends Searchengine
$results = $content->response->docs;
foreach ($results as $result) {
$title = $result->show . " : " . $result->title;
$link = urldecode($result->url);
$anzeigeLink = $link;
$descr = $result->description;
$image = "http://api-resources.fernsehsuche.de" . $result->thumbnail;
$this->counter++;
$this->results[] = new \App\Models\Result(
$this->engine,
$title,
$link,
$anzeigeLink,
$descr,
$this->gefVon,
$this->counter,
false,
$image
);
try {
$title = $result->show . " : " . $result->title;
$link = urldecode($result->url);
$anzeigeLink = $link;
$descr = $result->description;
$image = "http://api-resources.fernsehsuche.de" . $result->thumbnail;
$this->counter++;
$this->results[] = new \App\Models\Result(
$this->engine,
$title,
$link,
$anzeigeLink,
$descr,
$this->gefVon,
$this->counter,
false,
$image
);
} catch (\ErrorException $e) {
}
}
}
}
Markdown is supported
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