Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Jul 15, 2024
1 parent 6f73c6a commit 36e28f0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugin/CustomizeAdvanced/actionButton.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,10 @@

if($obj->allowDownloadMP3){
$filename = $videoAB->getFilename();
$mp3FileRelative = "{$video['filename']}.mp3";
$paths = Video::getPaths($mp3FileRelative);
var_dump($paths);
$paths = Video::getPaths($filename);
$mp3File = "{$paths['path']}{$video['filename']}.mp3";
$mp3URL= "{$paths['url']}{$video['filename']}.mp3";
if (file_exists($mp3File)) {
$mp3URL = getVideosURLAudio($mp3File, true);
$mp3URL = addQueryStringParameter($mp3URL, 'download', 1);
?>
<a href="<?php echo $mp3URL; ?>" class="btn btn-default no-outline" data-toggle="tooltip" title="<?php echo __("MP3"); ?>" target="_blank">
Expand Down

0 comments on commit 36e28f0

Please sign in to comment.