mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
add podcasts
This commit is contained in:
@@ -37,19 +37,24 @@ class ReadAndSyncPodcastFeeds extends Command
|
|||||||
4627128, // Nodesignal - Deine Bitcoin-Frequenz
|
4627128, // Nodesignal - Deine Bitcoin-Frequenz
|
||||||
4426306, // Pleb's Taverne
|
4426306, // Pleb's Taverne
|
||||||
4409506, // Sound Money Bitcoin Podcast
|
4409506, // Sound Money Bitcoin Podcast
|
||||||
|
620690, // Mises Karma
|
||||||
|
4409505, // Münzweg - der Bitcoin-Podcast
|
||||||
|
4645280, // Dezentralschweiz Podcast 🇨🇭
|
||||||
|
185578, // Blocktrainer Bitcoin Podcast
|
||||||
|
4909387, // Was Bitcoin bringt - mit Niko Jilch
|
||||||
];
|
];
|
||||||
|
|
||||||
foreach ($feedIds as $feedId) {
|
foreach ($feedIds as $feedId) {
|
||||||
$podcast = $client->podcasts->byFeedId($feedId)
|
$podcast = $client->podcasts->byFeedId($feedId)
|
||||||
->json();
|
->json();
|
||||||
$importPodcast = Podcast::query()
|
$importPodcast = Podcast::query()
|
||||||
->updateOrCreate(['guid' => $podcast->feed->podcastGuid], [
|
->updateOrCreate(['guid' => $podcast->feed->podcastGuid], [
|
||||||
'title' => $podcast->feed->title,
|
'title' => $podcast->feed->title,
|
||||||
'link' => $podcast->feed->link,
|
'link' => $podcast->feed->link,
|
||||||
'language_code' => $podcast->feed->language,
|
'language_code' => $podcast->feed->language,
|
||||||
'data' => $podcast->feed,
|
'data' => $podcast->feed,
|
||||||
'created_by' => 1,
|
'created_by' => 1,
|
||||||
]);
|
]);
|
||||||
$episodes = $client->episodes->withParameters(['max' => 10000])
|
$episodes = $client->episodes->withParameters(['max' => 10000])
|
||||||
->byFeedId($feedId)
|
->byFeedId($feedId)
|
||||||
->json();
|
->json();
|
||||||
|
|||||||
Reference in New Issue
Block a user