From cd12f5899230ed9aec90973de64f5dc1069d3a29 Mon Sep 17 00:00:00 2001 From: Kelvin Zhang Date: Thu, 10 Sep 2015 12:45:29 +0100 Subject: [PATCH] =?UTF-8?q?Merge=20rPF4b5547b10c7a:=20T357:=20Remove=20the?= =?UTF-8?q?=20dot=20at=20the=20end=20of=20a=20filename=20when=20generating?= =?UTF-8?q?=20a=20missing=20title=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Console/Commands/ImportMLPMA.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Console/Commands/ImportMLPMA.php b/app/Console/Commands/ImportMLPMA.php index 75356834..47f66afb 100644 --- a/app/Console/Commands/ImportMLPMA.php +++ b/app/Console/Commands/ImportMLPMA.php @@ -2,6 +2,7 @@ namespace App\Console\Commands; +use App\Commands\UploadTrackCommand; use App\Genre; use App\Image; use App\Track; @@ -199,7 +200,7 @@ class ImportMLPMA extends Command // Fill in the title tag if it's missing. //========================================================================================================== if (!$parsedTags['title']) { - $parsedTags['title'] = $file->getBasename($file->getExtension()); + $parsedTags['title'] = $file->getBasename('.' . $file->getExtension()); } @@ -329,7 +330,6 @@ class ImportMLPMA extends Command //========================================================================================================== // Save this track. //========================================================================================================== - // "Upload" the track to Pony.fm $this->comment('Transcoding the track!'); Auth::loginUsingId($artist->id); @@ -337,7 +337,7 @@ class ImportMLPMA extends Command $trackFile = new UploadedFile($file->getPathname(), $file->getFilename(), $allTags['mime_type']); Input::instance()->files->add(['track' => $trackFile]); - $upload = new UploadTrackCommand(true); + $upload = new UploadTrackCommand(true, true); $result = $upload->execute(); if ($result->didFail()) {