1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-11-16 14:25:02 -05:00

* 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

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