mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-04-01 00:35:30 +02: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;
|
namespace App\Console\Commands;
|
||||||
|
|
||||||
|
use App\Commands\UploadTrackCommand;
|
||||||
use App\Genre;
|
use App\Genre;
|
||||||
use App\Image;
|
use App\Image;
|
||||||
use App\Track;
|
use App\Track;
|
||||||
|
@ -199,7 +200,7 @@ class ImportMLPMA extends Command
|
||||||
// Fill in the title tag if it's missing.
|
// Fill in the title tag if it's missing.
|
||||||
//==========================================================================================================
|
//==========================================================================================================
|
||||||
if (!$parsedTags['title']) {
|
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.
|
// Save this track.
|
||||||
//==========================================================================================================
|
//==========================================================================================================
|
||||||
|
|
||||||
// "Upload" the track to Pony.fm
|
// "Upload" the track to Pony.fm
|
||||||
$this->comment('Transcoding the track!');
|
$this->comment('Transcoding the track!');
|
||||||
Auth::loginUsingId($artist->id);
|
Auth::loginUsingId($artist->id);
|
||||||
|
@ -337,7 +337,7 @@ class ImportMLPMA extends Command
|
||||||
$trackFile = new UploadedFile($file->getPathname(), $file->getFilename(), $allTags['mime_type']);
|
$trackFile = new UploadedFile($file->getPathname(), $file->getFilename(), $allTags['mime_type']);
|
||||||
Input::instance()->files->add(['track' => $trackFile]);
|
Input::instance()->files->add(['track' => $trackFile]);
|
||||||
|
|
||||||
$upload = new UploadTrackCommand(true);
|
$upload = new UploadTrackCommand(true, true);
|
||||||
$result = $upload->execute();
|
$result = $upload->execute();
|
||||||
|
|
||||||
if ($result->didFail()) {
|
if ($result->didFail()) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue