* parse album artist as well when using ID3Lookup

This commit is contained in:
Reinhard Pointner 2014-09-05 03:57:03 +00:00
parent 13506a97f1
commit 4c2784bfac
1 changed files with 6 additions and 1 deletions

View File

@ -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;
}
}