From 63f49c719f672b615c5a8893d3868dffcd332e47 Mon Sep 17 00:00:00 2001
From: Yassine Doghri <yassine@doghri.fr>
Date: Fri, 11 Jun 2021 09:06:06 +0000
Subject: [PATCH] fix: save transcript and chapters files to podcasts folder

---
 app/Entities/Episode.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app/Entities/Episode.php b/app/Entities/Episode.php
index 9556b3e94d..8760dd4a65 100644
--- a/app/Entities/Episode.php
+++ b/app/Entities/Episode.php
@@ -231,7 +231,7 @@ class Episode extends Entity
 
         $this->attributes['transcript_file_path'] = save_media(
             $transcriptFile,
-            $this->getPodcast()
+            'podcasts/' . $this->getPodcast()
                 ->name,
             $this->attributes['slug'] . '-transcript',
         );
@@ -248,7 +248,7 @@ class Episode extends Entity
 
         $this->attributes['chapters_file_path'] = save_media(
             $chaptersFile,
-            $this->getPodcast()
+            'podcasts/' . $this->getPodcast()
                 ->name,
             $this->attributes['slug'] . '-chapters',
         );
-- 
GitLab