daneren2005 wrote:There are separate API methods to do searches by ID3 Tags so that is probably what the _id3 sets are for.
Ha, that's what the "Per-folder" checkbox in DSub does?
- Code: Select all
SearchResult artists = searchService.search(criteria, musicFolders, SearchService.IndexType.ARTIST);
command.setArtists(artists.getMediaFiles());
SearchResult albums = searchService.search(criteria, musicFolders, SearchService.IndexType.ALBUM);
command.setAlbums(albums.getMediaFiles());
SearchResult songs = searchService.search(criteria, musicFolders, SearchService.IndexType.SONG);
command.setSongs(songs.getMediaFiles());
The above code is how Subsonic handles searching in the web interface. If I'm guessing correctly, since it's not using
IndexType.ALBUM_ID3 and
IndexType.ARTIST_ID3, it's not searching for ID3 tags but only for path components. If that's true, that's a shame...
