mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-22 04:58:01 +01:00
Merge rPF4b5547b10c7a: T357: Remove the dot at the end of a filename when generating a missing title…
This commit is contained in:
parent
bddfd6cae5
commit
cd12f58992
1 changed files with 3 additions and 3 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue