File backend: search subdirectories

This commit is contained in:
Annika Backstrom 2017-04-11 19:12:53 -04:00
parent 320c4f7aa5
commit adc365b4f8
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@ class FileBackend {
}
find(tag, callback) {
glob(this.config.media_path + '/' + tag + ' - *.mp3', (err, files) => {
glob(this.config.media_path + '/**/' + tag + ' - *.mp3', (err, files) => {
if (files.length > 0) {
return callback(pickRandom(files));
}