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