Fix double-stacking of file extension in podcast episode download.

This commit is contained in:
Buster "Silver Eagle" Neece 2021-06-20 18:13:14 -05:00
parent 7f7e2e2494
commit 0899505caa
No known key found for this signature in database
GPG Key ID: 6D9E12FF03411F4E
1 changed files with 1 additions and 4 deletions

View File

@ -32,13 +32,10 @@ class GetMediaAction
$path = $podcastMedia->getPath();
if ($fsPodcasts->fileExists($path)) {
$fileMeta = $fsPodcasts->getMetadata($path);
$filename = $podcastMedia->getOriginalName() . '.' . $fileMeta['extension'];
return $response->streamFilesystemFile(
$fsPodcasts,
$path,
$filename
$podcastMedia->getOriginalName()
);
}
}