Add epub extractor

This commit is contained in:
2026-03-09 22:34:39 -07:00
parent aecc84233b
commit ad41a8abbd
7 changed files with 269 additions and 0 deletions

View File

@@ -10,6 +10,9 @@ pub use id3::*;
mod fs;
pub use fs::*;
mod epub;
pub use epub::*;
mod pdf;
pub use pdf::*;
@@ -69,6 +72,10 @@ impl<'a> MetaExtractor<'a> {
Label::new("fs").unwrap(),
crate::PileValue::Extractor(Arc::new(FsExtractor::new(item))),
),
(
Label::new("epub").unwrap(),
crate::PileValue::Extractor(Arc::new(EpubExtractor::new(item))),
),
(
Label::new("pdf").unwrap(),
crate::PileValue::Extractor(Arc::new(PdfExtractor::new(item))),
@@ -103,6 +110,7 @@ impl Extractor for MetaExtractor<'_> {
Label::new("flac").unwrap(),
Label::new("id3").unwrap(),
Label::new("fs").unwrap(),
Label::new("epub").unwrap(),
Label::new("pdf").unwrap(),
Label::new("sidecar").unwrap(),
]);