Add id3 extractor

This commit is contained in:
2026-03-06 17:03:35 -08:00
parent 32c611186f
commit 77b3125af4
6 changed files with 134 additions and 1 deletions

View File

@@ -23,6 +23,10 @@ impl<'a> PdfTextExtractor<'a> {
return Ok(x);
}
if self.item.path.extension().map(|x| x.to_str()).flatten() != Some("pdf") {
return Ok(self.output.get_or_init(|| HashMap::new()));
}
let file = FileOptions::cached()
.open(&self.item.path)
.map_err(|e| std::io::Error::new(std::io::ErrorKind::InvalidData, e.to_string()))?;