mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-28 23:57:59 +01:00
Handle wav files and ignore any wmv files
This commit is contained in:
parent
9b9f25dc51
commit
f088badebb
1 changed files with 4 additions and 1 deletions
|
@ -37,7 +37,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.
|
||||||
|
@ -161,6 +161,9 @@ class ImportMLPMA extends Command {
|
||||||
} else if (Str::lower($file->getExtension()) === 'flac') {
|
} else if (Str::lower($file->getExtension()) === 'flac') {
|
||||||
list($parsedTags, $rawTags) = $this->getVorbisTags($allTags);
|
list($parsedTags, $rawTags) = $this->getVorbisTags($allTags);
|
||||||
|
|
||||||
|
} else if (Str::lower($file->getExtension()) === 'wav') {
|
||||||
|
list($parsedTags, $rawTags) = $this->getAtomTags($allTags);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue