Add id3 extractor
This commit is contained in:
@@ -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()))?;
|
||||
|
||||
Reference in New Issue
Block a user