* Have "ID3 Tag" datasource only accept audio files that are sufficiently tagged
This commit is contained in:
parent
cd4362291f
commit
8f483feeb5
|
@ -38,7 +38,9 @@ public class ID3Lookup implements MusicIdentificationService {
|
||||||
String album = mediaInfo.get(StreamKind.General, 0, "Album");
|
String album = mediaInfo.get(StreamKind.General, 0, "Album");
|
||||||
mediaInfo.close();
|
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;
|
return info;
|
||||||
|
|
Loading…
Reference in New Issue