fix: if the rss podcast server does not respond, do not crash when exporting
This commit is contained in:
parent
9fa69dfbb8
commit
1c261fbe4b
@ -51,7 +51,11 @@ class OpmlController extends Controller
|
|||||||
$subscriptions = $this->podcastMetricsReader->metrics($this->userService->getUserUID());
|
$subscriptions = $this->podcastMetricsReader->metrics($this->userService->getUserUID());
|
||||||
|
|
||||||
foreach ($subscriptions as $subscription) {
|
foreach ($subscriptions as $subscription) {
|
||||||
|
try {
|
||||||
$podcast = $this->podcastDataReader->getCachedOrFetchPodcastData($subscription->getUrl(), $this->userService->getUserUID());
|
$podcast = $this->podcastDataReader->getCachedOrFetchPodcastData($subscription->getUrl(), $this->userService->getUserUID());
|
||||||
|
} catch (\Exception $e) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if ($podcast) {
|
if ($podcast) {
|
||||||
$outline = $body->addChild('outline');
|
$outline = $body->addChild('outline');
|
||||||
|
Loading…
Reference in New Issue
Block a user