Skip to content
Snippets Groups Projects
Unverified Commit 63f49c71 authored by Yassine Doghri's avatar Yassine Doghri
Browse files

fix: save transcript and chapters files to podcasts folder

parent 8d9bba4e
Branches
Tags
No related merge requests found
...@@ -231,7 +231,7 @@ class Episode extends Entity ...@@ -231,7 +231,7 @@ class Episode extends Entity
$this->attributes['transcript_file_path'] = save_media( $this->attributes['transcript_file_path'] = save_media(
$transcriptFile, $transcriptFile,
$this->getPodcast() 'podcasts/' . $this->getPodcast()
->name, ->name,
$this->attributes['slug'] . '-transcript', $this->attributes['slug'] . '-transcript',
); );
...@@ -248,7 +248,7 @@ class Episode extends Entity ...@@ -248,7 +248,7 @@ class Episode extends Entity
$this->attributes['chapters_file_path'] = save_media( $this->attributes['chapters_file_path'] = save_media(
$chaptersFile, $chaptersFile,
$this->getPodcast() 'podcasts/' . $this->getPodcast()
->name, ->name,
$this->attributes['slug'] . '-chapters', $this->attributes['slug'] . '-chapters',
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment