4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-17 22:47:04 +00:00

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

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()
);
}
}