Update vorbis_tag.rs

Signed-off-by: Serial <69764315+Serial-ATA@users.noreply.github.com>
This commit is contained in:
Serial 2021-06-27 13:45:18 -04:00
parent ea0c6931b6
commit 5c73d485fb

View file

@ -142,19 +142,9 @@ impl TryFrom<OGGTags> for VorbisTag {
fn try_from(inp: OGGTags) -> Result<Self> {
let mut tag = Self::default();
let read_pictures = inp.1;
let pictures = inp.1;
let comments = inp.2;
let mut pictures = Vec::new();
if !read_pictures.is_empty() {
for pic in read_pictures {
if let Ok(pic) = Picture::from_apic_bytes(&pic.as_bytes()) {
pictures.push(pic)
}
}
}
tag.inner = VorbisInnerTag {
format: Some(inp.3),
vendor: inp.0,