* Have "ID3 Tag" datasource only accept audio files that are sufficiently tagged
This commit is contained in:
parent
cd4362291f
commit
8f483feeb5
|
@ -38,8 +38,10 @@ 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();
|
||||||
|
|
||||||
|
if (artist.length() > 0 && title.length() > 0 && album.length() > 0) {
|
||||||
info.put(f, new AudioTrack(artist, title, album));
|
info.put(f, new AudioTrack(artist, title, album));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue