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