Search in sources :

Example 1 with SettingsService

use of org.libresonic.player.service.SettingsService in project libresonic by Libresonic.

the class MetaDataParser method isRoot.

private boolean isRoot(File file) {
    SettingsService settings = ServiceLocator.getSettingsService();
    List<MusicFolder> folders = settings.getAllMusicFolders(false, true);
    for (MusicFolder folder : folders) {
        if (file.equals(folder.getPath())) {
            return true;
        }
    }
    return false;
}
Also used : SettingsService(org.libresonic.player.service.SettingsService) MusicFolder(org.libresonic.player.domain.MusicFolder)

Aggregations

MusicFolder (org.libresonic.player.domain.MusicFolder)1 SettingsService (org.libresonic.player.service.SettingsService)1