fix(import): save media files during podcast import + set missing media fields

This commit is contained in:
Yassine Doghri 2021-12-21 13:42:31 +00:00
commit a9989d841a
8 changed files with 48 additions and 20 deletions

View file

@ -345,7 +345,7 @@ class PodcastImportController extends BaseController
'title' => $item->title,
'slug' => $slug,
'guid' => $item->guid ?? null,
'audio_file' => download_file(
'audio' => download_file(
(string) $item->enclosure->attributes()['url'],
(string) $item->enclosure->attributes()['type']
),