meetup fix

This commit is contained in:
HolgerHatGarKeineNode
2023-08-25 12:57:58 +02:00
parent 0c3d2068ad
commit 9e5ed582be

View File

@@ -64,10 +64,10 @@ class ReadAndSyncPodcastFeeds extends Command
foreach ($feedIds as $feedId) { foreach ($feedIds as $feedId) {
$podcast = $client->podcasts->byFeedId($feedId) $podcast = $client->podcasts->byFeedId($feedId)
->json(); ->json();
$this->info('Importing: ' . $podcast->feed->title);
if (is_array($podcast->feed)) { if (is_array($podcast->feed)) {
Log::error('Error importing feed: ' . $feedId); Log::error('Error importing feed: ' . $feedId);
} }
$this->info('Importing: ' . $podcast->feed->title);
$importPodcast = Podcast::query() $importPodcast = Podcast::query()
->updateOrCreate(['guid' => $podcast->feed->podcastGuid], [ ->updateOrCreate(['guid' => $podcast->feed->podcastGuid], [
'title' => $podcast->feed->title, 'title' => $podcast->feed->title,