diff --git a/lib/Controller/PodcastController.php b/lib/Controller/PodcastController.php index 4edbec7..2e3dd29 100644 --- a/lib/Controller/PodcastController.php +++ b/lib/Controller/PodcastController.php @@ -29,11 +29,12 @@ class PodcastController extends Controller * @NoCSRFRequired */ public function index(string $url): JSONResponse { + $podcast = null; + if ($this->cacheFactory->isLocalCacheAvailable()) { try { $podcast = $this->podcastDataReader->tryGetCachedPodcastData($url); } catch (\Exception $e) { - $podcast = null; } }