This commit is contained in:
Andrew Radev
2019-02-17 16:11:07 +02:00
parent 03cb9fe656
commit 7b8ac1b476
6 changed files with 103 additions and 1 deletions

View File

@ -13,7 +13,7 @@ pub fn embed_image(music_filename: &str, image_filename: &str) -> Result<(), Box
tag.add_picture(id3::frame::Picture {
mime_type: "image/jpeg".to_string(),
picture_type: id3::frame::PictureType::Other,
picture_type: id3::frame::PictureType::CoverFront,
description: String::new(),
data: encoded_image_bytes,
});