mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2025-04-01 00:35:30 +02:00
T357, T350: Restore updates from rPFf088badebbbb.
This commit is contained in:
parent
d076c63db0
commit
205e034174
1 changed files with 8 additions and 4 deletions
|
@ -42,7 +42,7 @@ class ImportMLPMA extends Command
|
||||||
*
|
*
|
||||||
* @var array
|
* @var array
|
||||||
*/
|
*/
|
||||||
protected $ignoredExtensions = ['db', 'jpg', 'png', 'txt', 'rtf', 'wma'];
|
protected $ignoredExtensions = ['db', 'jpg', 'png', 'txt', 'rtf', 'wma', 'wmv'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Used to stop the import process when a SIGINT is received.
|
* Used to stop the import process when a SIGINT is received.
|
||||||
|
@ -83,8 +83,8 @@ class ImportMLPMA extends Command
|
||||||
{
|
{
|
||||||
pcntl_signal(SIGINT, [$this, 'handleInterrupt']);
|
pcntl_signal(SIGINT, [$this, 'handleInterrupt']);
|
||||||
|
|
||||||
$mlpmaPath = Config::get('ponyfm.files_directory') . 'mlpma';
|
$mlpmaPath = Config::get('ponyfm.files_directory') . '/mlpma';
|
||||||
$tmpPath = Config::get('ponyfm.files_directory') . 'tmp';
|
$tmpPath = Config::get('ponyfm.files_directory') . '/tmp';
|
||||||
|
|
||||||
if (!File::exists($tmpPath)) {
|
if (!File::exists($tmpPath)) {
|
||||||
File::makeDirectory($tmpPath);
|
File::makeDirectory($tmpPath);
|
||||||
|
@ -166,8 +166,12 @@ class ImportMLPMA extends Command
|
||||||
} elseif (Str::lower($file->getExtension()) === 'flac') {
|
} elseif (Str::lower($file->getExtension()) === 'flac') {
|
||||||
list($parsedTags, $rawTags) = $this->getVorbisTags($allTags);
|
list($parsedTags, $rawTags) = $this->getVorbisTags($allTags);
|
||||||
|
|
||||||
|
} elseif (Str::lower($file->getExtension()) === 'wav') {
|
||||||
|
list($parsedTags, $rawTags) = $this->getAtomTags($allTags);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//==========================================================================================================
|
//==========================================================================================================
|
||||||
// Determine the release date.
|
// Determine the release date.
|
||||||
//==========================================================================================================
|
//==========================================================================================================
|
||||||
|
|
Loading…
Add table
Reference in a new issue