diff --git a/Cargo.toml b/Cargo.toml index 8bb387ad..62e03006 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "lofty" -version = "0.1.1" +version = "0.1.2" authors = ["Serial <69764315+Serial-ATA@users.noreply.github.com>", "Tianyi "] edition = "2018" license = "MIT OR Apache-2.0" @@ -9,8 +9,6 @@ repository = "https://github.com/Serial-ATA/lofty-rs" keywords = ["tags", "audio", "metadata"] categories = ["accessibility", "multimedia::audio"] -# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html - [dependencies] # Ape ape = {version = "0.3.0", optional = true} diff --git a/src/components/tags/ape_tag.rs b/src/components/tags/ape_tag.rs index 51d9ba79..dc7580fe 100644 --- a/src/components/tags/ape_tag.rs +++ b/src/components/tags/ape_tag.rs @@ -131,13 +131,15 @@ impl AudioTagEdit for ApeTag { } fn album_cover(&self) -> Option { - None // TODO + // TODO + None } fn set_album_cover(&mut self, _cover: Picture) { // TODO } + fn remove_album_cover(&mut self) { - // TODO + self.remove_key("Cover Art (Front)") } // Track number and total tracks are stored together as num/total? diff --git a/src/lib.rs b/src/lib.rs index 628af883..25b1213c 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,16 +12,16 @@ //! //! # Supported Formats //! -//!| File Format | Extensions | Read | Write | Duration | Metadata Format(s) | -//!|-------------|-------------------------------------------|------|-------|----------|----------------------| -//!| Ape | `ape` |**X** |**X** | | `APEv2` | -//!| AIFF | `aiff`, `aif` |**X** |**X** | | `ID3v2` | -//!| FLAC | `flac` |**X** |**X** | | `Vorbis Comments` | -//!| MP3 | `mp3` |**X** |**X** |**X** | `ID3v2` | -//!| MP4 | `mp4`, `m4a`, `m4b`, `m4p`, `m4v`, `isom` |**X** |**X** | | `Vorbis Comments` | -//!| Opus | `opus` |**X** |**X** | | `Vorbis Comments` | -//!| Ogg | `ogg`, `oga` |**X** |**X** | | `Vorbis Comments` | -//!| WAV | `wav`, `wave` |**X** |**X** | | `RIFF INFO`, `ID3v2` | +//! | File Format | Extensions | Read | Write | Duration | Metadata Format(s) | +//! |-------------|-------------------------------------------|------|-------|----------|----------------------| +//! | Ape | `ape` |**X** |**X** | | `APEv2` | +//! | AIFF | `aiff`, `aif` |**X** |**X** | | `ID3v2` | +//! | FLAC | `flac` |**X** |**X** | | `Vorbis Comments` | +//! | MP3 | `mp3` |**X** |**X** |**X** | `ID3v2` | +//! | MP4 | `mp4`, `m4a`, `m4b`, `m4p`, `m4v`, `isom` |**X** |**X** | | `Vorbis Comments` | +//! | Opus | `opus` |**X** |**X** | | `Vorbis Comments` | +//! | Ogg | `ogg`, `oga` |**X** |**X** | | `Vorbis Comments` | +//! | WAV | `wav`, `wave` |**X** |**X** | | `RIFF INFO`, `ID3v2` | //! //! # Examples //!