Extract FLAC images

This commit is contained in:
2026-03-10 17:01:54 -07:00
parent a19c597531
commit fd66a4995a

View File

@@ -76,8 +76,9 @@ impl<'a> FlacExtractor<'a> {
.map(|(k, v)| (k, PileValue::Array(v))) .map(|(k, v)| (k, PileValue::Array(v)))
.collect(); .collect();
if !raw_images.is_empty() { if !raw_images.is_empty()
if let Some(label) = Label::new("images".to_string()) { && let Some(label) = Label::new("images".to_owned())
{
let images = raw_images let images = raw_images
.into_iter() .into_iter()
.map(|(mime, data)| PileValue::Blob { .map(|(mime, data)| PileValue::Blob {
@@ -87,7 +88,6 @@ impl<'a> FlacExtractor<'a> {
.collect(); .collect();
output.insert(label, PileValue::Array(images)); output.insert(label, PileValue::Array(images));
} }
}
let _ = self.output.set(output); let _ = self.output.set(output);
#[expect(clippy::unwrap_used)] #[expect(clippy::unwrap_used)]