podcastDataReader->tryGetCachedPodcastData($url); } catch (\Exception $e) { $podcast = null; } if ($podcast) { return new JSONResponse($podcast); } $client = $this->clientService->newClient(); $feed = $client->get($url); $podcast = PodcastData::parseRssXml((string) $feed->getBody()); try { $this->podcastDataReader->trySetCachedPodcastData($url, $podcast); } catch (\Exception $e) { } return new JSONResponse($podcast, $feed->getStatusCode()); } }