From 8f483feeb58dcfdf8e777896a45644507e27247f Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Sat, 7 Dec 2013 08:05:35 +0000 Subject: [PATCH] * Have "ID3 Tag" datasource only accept audio files that are sufficiently tagged --- source/net/sourceforge/filebot/web/ID3Lookup.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/source/net/sourceforge/filebot/web/ID3Lookup.java b/source/net/sourceforge/filebot/web/ID3Lookup.java index da0301d9..473d49a4 100644 --- a/source/net/sourceforge/filebot/web/ID3Lookup.java +++ b/source/net/sourceforge/filebot/web/ID3Lookup.java @@ -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;