Add exif extractor

This commit is contained in:
2026-03-09 22:42:31 -07:00
parent ad41a8abbd
commit 6889edef0c
5 changed files with 102 additions and 0 deletions

View File

@@ -13,6 +13,9 @@ pub use fs::*;
mod epub;
pub use epub::*;
mod exif;
pub use exif::*;
mod pdf;
pub use pdf::*;
@@ -76,6 +79,10 @@ impl<'a> MetaExtractor<'a> {
Label::new("epub").unwrap(),
crate::PileValue::Extractor(Arc::new(EpubExtractor::new(item))),
),
(
Label::new("exif").unwrap(),
crate::PileValue::Extractor(Arc::new(ExifExtractor::new(item))),
),
(
Label::new("pdf").unwrap(),
crate::PileValue::Extractor(Arc::new(PdfExtractor::new(item))),
@@ -111,6 +118,7 @@ impl Extractor for MetaExtractor<'_> {
Label::new("id3").unwrap(),
Label::new("fs").unwrap(),
Label::new("epub").unwrap(),
Label::new("exif").unwrap(),
Label::new("pdf").unwrap(),
Label::new("sidecar").unwrap(),
]);