* Have "ID3 Tag" datasource only accept audio files that are sufficiently tagged

This commit is contained in:
Reinhard Pointner 2013-12-07 08:05:35 +00:00
parent cd4362291f
commit 8f483feeb5
1 changed files with 3 additions and 1 deletions

View File

@ -38,7 +38,9 @@ public class ID3Lookup implements MusicIdentificationService {
String album = mediaInfo.get(StreamKind.General, 0, "Album");
mediaInfo.close();
info.put(f, new AudioTrack(artist, title, album));
if (artist.length() > 0 && title.length() > 0 && album.length() > 0) {
info.put(f, new AudioTrack(artist, title, album));
}
}
return info;