...
 
Commits (2)
...@@ -100,10 +100,15 @@ class ShowController extends Controller ...@@ -100,10 +100,15 @@ class ShowController extends Controller
abort(404); abort(404);
} }
$feed = $this->findOrMake($feed_id, $refresh); try {
$feed = $this->findOrMake($feed_id, $refresh);
if (!$feed->is_premium && $feed->premium_id) { if (!$feed->is_premium && $feed->premium_id) {
$feed = $this->findOrMake($feed->premium_id, $refresh); $feed = $this->findOrMake($feed->premium_id, $refresh);
}
} catch (RequestException | ConnectException $ex) {
Log::notice("Refresh issue: " . $ex->getMessage());
return response("We had an issue reaching Stitcher.", 503);
} }
if (!$feed->is_premium) { if (!$feed->is_premium) {
...@@ -135,13 +140,7 @@ class ShowController extends Controller ...@@ -135,13 +140,7 @@ class ShowController extends Controller
if (!$feed) { if (!$feed) {
$feed = Feed::make(['id' => $feed_id]); $feed = Feed::make(['id' => $feed_id]);
$refresh->refresh($feed);
try {
$refresh->refresh($feed);
} catch (RequestException | ConnectException $ex) {
Log::notice("Refresh issue: " . $ex->getMessage());
return response("We had an issue reaching Stitcher.", 503);
}
} }
return $feed; return $feed;
......
...@@ -33,8 +33,8 @@ class ParametersMiddleware ...@@ -33,8 +33,8 @@ class ParametersMiddleware
$query = parse_query($request->getUri()->getQuery()); $query = parse_query($request->getUri()->getQuery());
$query += [ $query += [
'version' => 4.31, 'version' => 8.9,
'mode' => 'android', 'mode' => 'iPhoneApp',
'udid' => config('services.stitcher.device'), 'udid' => config('services.stitcher.device'),
]; ];
......