mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
Fix spelling (#454)
This commit is contained in:
parent
8fb5031dc3
commit
1d7a7602c9
3 changed files with 4 additions and 4 deletions
|
@ -119,7 +119,7 @@ class Media
|
||||||
{
|
{
|
||||||
return Finder::create()
|
return Finder::create()
|
||||||
->ignoreUnreadableDirs()
|
->ignoreUnreadableDirs()
|
||||||
->ignoreDotFiles((bool) config('koel.ingore_dot_files')) // https://github.com/phanan/koel/issues/450
|
->ignoreDotFiles((bool) config('koel.ignore_dot_files')) // https://github.com/phanan/koel/issues/450
|
||||||
->files()
|
->files()
|
||||||
->followLinks()
|
->followLinks()
|
||||||
->name('/\.(mp3|ogg|m4a|flac)$/i')
|
->name('/\.(mp3|ogg|m4a|flac)$/i')
|
||||||
|
|
|
@ -108,6 +108,6 @@ return [
|
||||||
| Ignore dot files and folders when scanning for media files.
|
| Ignore dot files and folders when scanning for media files.
|
||||||
|
|
|
|
||||||
*/
|
*/
|
||||||
'ingore_dot_files' => env('IGNORE_DOT_FILES', true),
|
'ignore_dot_files' => env('IGNORE_DOT_FILES', true),
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
|
@ -216,12 +216,12 @@ class MediaTest extends TestCase
|
||||||
|
|
||||||
public function testDotDirectories()
|
public function testDotDirectories()
|
||||||
{
|
{
|
||||||
config(['koel.ingore_dot_files' => false]);
|
config(['koel.ignore_dot_files' => false]);
|
||||||
$media = new Media();
|
$media = new Media();
|
||||||
$media->sync($this->mediaPath);
|
$media->sync($this->mediaPath);
|
||||||
$this->seeInDatabase('albums', ['name' => 'Hidden Album']);
|
$this->seeInDatabase('albums', ['name' => 'Hidden Album']);
|
||||||
|
|
||||||
config(['koel.ingore_dot_files' => true]);
|
config(['koel.ignore_dot_files' => true]);
|
||||||
$media->sync($this->mediaPath);
|
$media->sync($this->mediaPath);
|
||||||
$this->notSeeInDatabase('albums', ['name' => 'Hidden Album']);
|
$this->notSeeInDatabase('albums', ['name' => 'Hidden Album']);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue