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:
parent
7f7e2e2494
commit
0899505caa
|
@ -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()
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user