Handle wav files and ignore any wmv files

This commit is contained in:
Adam Lavin 2015-09-12 22:10:36 +01:00
parent 9b9f25dc51
commit f088badebb

View file

@ -37,7 +37,7 @@ class ImportMLPMA extends Command {
*
* @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.
@ -161,6 +161,9 @@ class ImportMLPMA extends Command {
} else if (Str::lower($file->getExtension()) === 'flac') {
list($parsedTags, $rawTags) = $this->getVorbisTags($allTags);
} else if (Str::lower($file->getExtension()) === 'wav') {
list($parsedTags, $rawTags) = $this->getAtomTags($allTags);
}