From 1c261fbe4b6f2cdfb142acccf4de1ba70985cfaa Mon Sep 17 00:00:00 2001 From: Michel Roux Date: Tue, 30 Jan 2024 14:38:26 +0100 Subject: [PATCH] fix: if the rss podcast server does not respond, do not crash when exporting --- lib/Controller/OpmlController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/Controller/OpmlController.php b/lib/Controller/OpmlController.php index 80bd840..7934eb3 100644 --- a/lib/Controller/OpmlController.php +++ b/lib/Controller/OpmlController.php @@ -51,7 +51,11 @@ class OpmlController extends Controller $subscriptions = $this->podcastMetricsReader->metrics($this->userService->getUserUID()); foreach ($subscriptions as $subscription) { - $podcast = $this->podcastDataReader->getCachedOrFetchPodcastData($subscription->getUrl(), $this->userService->getUserUID()); + try { + $podcast = $this->podcastDataReader->getCachedOrFetchPodcastData($subscription->getUrl(), $this->userService->getUserUID()); + } catch (\Exception $e) { + continue; + } if ($podcast) { $outline = $body->addChild('outline');