mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
log feed error
This commit is contained in:
@@ -6,6 +6,7 @@ use App\Models\Episode;
|
|||||||
use App\Models\Podcast;
|
use App\Models\Podcast;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Support\Carbon;
|
use Illuminate\Support\Carbon;
|
||||||
|
use Illuminate\Support\Facades\Log;
|
||||||
|
|
||||||
class ReadAndSyncPodcastFeeds extends Command
|
class ReadAndSyncPodcastFeeds extends Command
|
||||||
{
|
{
|
||||||
@@ -64,6 +65,9 @@ class ReadAndSyncPodcastFeeds extends Command
|
|||||||
$podcast = $client->podcasts->byFeedId($feedId)
|
$podcast = $client->podcasts->byFeedId($feedId)
|
||||||
->json();
|
->json();
|
||||||
$this->info('Importing: ' . $podcast->feed->title);
|
$this->info('Importing: ' . $podcast->feed->title);
|
||||||
|
if (is_array($podcast->feed)) {
|
||||||
|
Log::error('Error importing feed: ' . $feedId);
|
||||||
|
}
|
||||||
$importPodcast = Podcast::query()
|
$importPodcast = Podcast::query()
|
||||||
->updateOrCreate(['guid' => $podcast->feed->podcastGuid], [
|
->updateOrCreate(['guid' => $podcast->feed->podcastGuid], [
|
||||||
'title' => $podcast->feed->title,
|
'title' => $podcast->feed->title,
|
||||||
|
|||||||
12
composer.lock
generated
12
composer.lock
generated
@@ -15328,16 +15328,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "laravel-lang/http-statuses",
|
"name": "laravel-lang/http-statuses",
|
||||||
"version": "v3.4.3",
|
"version": "v3.4.4",
|
||||||
"source": {
|
"source": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Laravel-Lang/http-statuses.git",
|
"url": "https://github.com/Laravel-Lang/http-statuses.git",
|
||||||
"reference": "0bd05c814ac28e826bb243b4ab5e1a12fd58e0ce"
|
"reference": "a040c261c10f68980e865c9900b76c32fd6f0275"
|
||||||
},
|
},
|
||||||
"dist": {
|
"dist": {
|
||||||
"type": "zip",
|
"type": "zip",
|
||||||
"url": "https://api.github.com/repos/Laravel-Lang/http-statuses/zipball/0bd05c814ac28e826bb243b4ab5e1a12fd58e0ce",
|
"url": "https://api.github.com/repos/Laravel-Lang/http-statuses/zipball/a040c261c10f68980e865c9900b76c32fd6f0275",
|
||||||
"reference": "0bd05c814ac28e826bb243b4ab5e1a12fd58e0ce",
|
"reference": "a040c261c10f68980e865c9900b76c32fd6f0275",
|
||||||
"shasum": ""
|
"shasum": ""
|
||||||
},
|
},
|
||||||
"require": {
|
"require": {
|
||||||
@@ -15392,7 +15392,7 @@
|
|||||||
],
|
],
|
||||||
"support": {
|
"support": {
|
||||||
"issues": "https://github.com/Laravel-Lang/http-statuses/issues",
|
"issues": "https://github.com/Laravel-Lang/http-statuses/issues",
|
||||||
"source": "https://github.com/Laravel-Lang/http-statuses/tree/v3.4.3"
|
"source": "https://github.com/Laravel-Lang/http-statuses/tree/v3.4.4"
|
||||||
},
|
},
|
||||||
"funding": [
|
"funding": [
|
||||||
{
|
{
|
||||||
@@ -15400,7 +15400,7 @@
|
|||||||
"type": "open_collective"
|
"type": "open_collective"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"time": "2023-08-22T01:18:47+00:00"
|
"time": "2023-08-24T01:17:58+00:00"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "laravel-lang/lang",
|
"name": "laravel-lang/lang",
|
||||||
|
|||||||
Reference in New Issue
Block a user