From 4c2784bfacf598dd816c7a259ffd40d73c8224d3 Mon Sep 17 00:00:00 2001 From: Reinhard Pointner Date: Fri, 5 Sep 2014 03:57:03 +0000 Subject: [PATCH] * parse album artist as well when using ID3Lookup --- source/net/filebot/web/ID3Lookup.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/source/net/filebot/web/ID3Lookup.java b/source/net/filebot/web/ID3Lookup.java index ba6c3b9c..c75ecc97 100644 --- a/source/net/filebot/web/ID3Lookup.java +++ b/source/net/filebot/web/ID3Lookup.java @@ -46,6 +46,12 @@ public class ID3Lookup implements MusicIdentificationService { SimpleDate albumReleaseDate = null; Integer mediumIndex = null, mediumCount = null, trackIndex = null, trackCount = null; + try { + albumArtist = mediaInfo.get(StreamKind.General, 0, "Album/Performer"); + } catch (Exception e) { + // ignore + } + try { int year = new Scanner(mediaInfo.get(StreamKind.General, 0, "Recorded_Date")).useDelimiter("\\D+").nextInt(); albumReleaseDate = new SimpleDate(year, 1, 1); @@ -77,5 +83,4 @@ public class ID3Lookup implements MusicIdentificationService { return info; } - }