mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-12-13 14:12:31 +00:00
Update vorbis_tag.rs
Signed-off-by: Serial <69764315+Serial-ATA@users.noreply.github.com>
This commit is contained in:
parent
ea0c6931b6
commit
5c73d485fb
1 changed files with 1 additions and 11 deletions
|
@ -142,19 +142,9 @@ impl TryFrom<OGGTags> for VorbisTag {
|
||||||
fn try_from(inp: OGGTags) -> Result<Self> {
|
fn try_from(inp: OGGTags) -> Result<Self> {
|
||||||
let mut tag = Self::default();
|
let mut tag = Self::default();
|
||||||
|
|
||||||
let read_pictures = inp.1;
|
let pictures = inp.1;
|
||||||
let comments = inp.2;
|
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 {
|
tag.inner = VorbisInnerTag {
|
||||||
format: Some(inp.3),
|
format: Some(inp.3),
|
||||||
vendor: inp.0,
|
vendor: inp.0,
|
||||||
|
|
Loading…
Reference in a new issue