Skip to content

Commit 4d1f2ca

Browse files
author
Daniel Neto
committed
Update
1 parent 8e32981 commit 4d1f2ca

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

view/queue.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,9 @@
5252
$e->setTitle($path_parts['filename']);
5353
$e->setPriority($s->getPriority());
5454

55-
if (!empty($_POST['audioOnly']) && $_POST['audioOnly'] !== 'false') {
55+
if (strtolower(pathinfo($_POST['fileURI'], PATHINFO_EXTENSION)) === 'mp3') {
56+
$e->setFormats_idFromOrder(89); //Audio to MP4
57+
}else if (!empty($_POST['audioOnly']) && $_POST['audioOnly'] !== 'false') {
5658
if (!empty($_POST['spectrum']) && $_POST['spectrum'] !== 'false') {
5759
$e->setFormats_idFromOrder(70); // video to spectrum [(6)MP4 to MP3] -> [(5)MP3 to spectrum] -> [(2)MP4 to webm]
5860
} else {
@@ -86,7 +88,7 @@
8688
} else {
8789
$e->setStatus(Encoder::STATUS_QUEUE);
8890
$id = $e->save();
89-
91+
9092
$obj = Encoder::getVideosId($id);
9193
}
9294
// start queue now

0 commit comments

Comments
 (0)