audiotags
audiotags copied to clipboard
[Question] Cover Art from .m4a/.mp3 Files
I am unable to read cover art from m4a
and mp3
files. These are just songs that I have purchased from there Apple Music Store (iTunes)
For example:
let tag = Tag::new().read_from_path(p.clone()).unwrap();
let album_cover_mime: String = tag.album_cover().map(|cover| cover.mime_type).unwrap_or(MimeType::Tiff).into();
let picture_data = tag.album_cover().map(|cover| cover.data).unwrap_or_default().to_vec();
The album_cover_mime
is set to default, and the picture_data
vec is empty.
Am I doing something wrong?