mirror of
https://github.com/mitb-archive/filebot
synced 2024-12-23 08:18:52 -05:00
* parse album artist as well when using ID3Lookup
This commit is contained in:
parent
13506a97f1
commit
4c2784bfac
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user