T357: Ignore WMA files and added support for FLAC imports.

This commit is contained in:
Peter Deltchev 2015-09-11 10:47:40 -07:00
parent d78c240a42
commit 207569e597

View file

@ -37,7 +37,7 @@ class ImportMLPMA extends Command {
* *
* @var array * @var array
*/ */
protected $ignoredExtensions = ['db', 'jpg', 'png', 'txt', 'rtf']; protected $ignoredExtensions = ['db', 'jpg', 'png', 'txt', 'rtf', 'wma'];
/** /**
* Used to stop the import process when a SIGINT is received. * Used to stop the import process when a SIGINT is received.
@ -158,6 +158,9 @@ class ImportMLPMA extends Command {
} else if (Str::lower($file->getExtension()) === 'ogg') { } else if (Str::lower($file->getExtension()) === 'ogg') {
list($parsedTags, $rawTags) = $this->getVorbisTags($allTags); list($parsedTags, $rawTags) = $this->getVorbisTags($allTags);
} else if (Str::lower($file->getExtension()) === 'flac') {
list($parsedTags, $rawTags) = $this->getVorbisTags($allTags);
} }