mirror of
https://github.com/mitb-archive/filebot
synced 2025-03-10 06:20:27 -04:00
MediaInfo does not support EXIF image metadata natively so we use the metadata-extractor library and implicitly merge that information in
This commit is contained in:
parent
bd826cb297
commit
16a36757a7
@ -154,8 +154,7 @@ public class MediaInfo implements Closeable {
|
|||||||
if (streamKind == StreamKind.Image && streamNumber == 0) {
|
if (streamKind == StreamKind.Image && streamNumber == 0) {
|
||||||
String path = get(StreamKind.General, 0, "CompleteName");
|
String path = get(StreamKind.General, 0, "CompleteName");
|
||||||
try {
|
try {
|
||||||
ImageMetadata exif = new ImageMetadata(new File(path));
|
streamInfo.putAll(new ImageMetadata(new File(path)));
|
||||||
exif.forEach(streamInfo::putIfAbsent);
|
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
debug.warning(format("%s: %s", e, path));
|
debug.warning(format("%s: %s", e, path));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user