Skip to content

Commit 44f090c

Browse files
committed
ID3v2: Export Popularimeter
1 parent e9cfd77 commit 44f090c

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
88

99
### Fixed
1010
- **WAV**: Fix division by zero when reading the properties of an empty stream ([issue](https://github.com/Serial-ATA/lofty-rs/issues/174)) ([PR](https://github.com/Serial-ATA/lofty-rs/pull/175))
11-
- **ID3v2**: Export `id3::v2::UniqueFileIdentifierFrame`
11+
- **ID3v2**:
12+
- Export `id3::v2::UniqueFileIdentifierFrame`
13+
- Export `id3::v2::Popularimeter`
1214

1315
## [0.12.0] - 2023-04-04
1416

src/id3/v2/items/popularimeter.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,11 @@ impl Popularimeter {
4949
}
5050

5151
/// Convert ID3v2 POPM frame bytes into a [`Popularimeter`].
52+
///
53+
/// # Errors
54+
///
55+
/// * Email is improperly encoded
56+
/// * `bytes` doesn't contain enough data
5257
pub fn from_bytes(mut bytes: &[u8]) -> Result<Self> {
5358
let content = &mut bytes;
5459

src/id3/v2/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ pub use items::encapsulated_object::{GEOBInformation, GeneralEncapsulatedObject}
3535
pub use items::encoded_text_frame::EncodedTextFrame;
3636
pub use items::identifier::UniqueFileIdentifierFrame;
3737
pub use items::language_frame::LanguageFrame;
38+
pub use items::popularimeter::Popularimeter;
3839
pub use items::sync_text::{
3940
SyncTextContentType, SyncTextInformation, SynchronizedText, TimestampFormat,
4041
};

0 commit comments

Comments
 (0)