changelog: Add entry for ID3v2 timestamps

This commit is contained in:
Serial 2024-04-29 02:42:44 -04:00 committed by Alex
parent 0f8ce7a4f0
commit 4423b5a62b
3 changed files with 9 additions and 5 deletions

View file

@ -7,9 +7,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Added
- **Tag**: Support `ItemKey::ParentalAdvisory` for `Ilst` and `Id3v2Tag` ([issue](https://github.com/Serial-ATA/lofty-rs/issues/99)) ([PR](https://github.com/Serial-ATA/lofty-rs/pull/388))
- This will allow for generic edits to the iTunes-style parental advisory tag. Note that this will use the
numeric representation. For more information, see: https://docs.mp3tag.de/mapping/#itunesadvisory.
- **Tag**:
- Support `ItemKey::ParentalAdvisory` for `Ilst` and `Id3v2Tag` ([issue](https://github.com/Serial-ATA/lofty-rs/issues/99)) ([PR](https://github.com/Serial-ATA/lofty-rs/pull/388))
- This will allow for generic edits to the iTunes-style parental advisory tag. Note that this will use the
numeric representation. For more information, see: https://docs.mp3tag.de/mapping/#itunesadvisory.
- New `tag::items` module for generic representations of complex tag items
- New **Timestamp** item for ISO 8601 timestamps ([PR](https://github.com/Serial-ATA/lofty-rs/pull/389))
- **ID3v2**: Special handling for frames with timestamps with `FrameValue::Timestamp` ([PR](https://github.com/Serial-ATA/lofty-rs/pull/389))
### Changed
- **VorbisComments**/**ApeTag**: Verify contents of `ItemKey::FlagCompilation` during `Tag` merge ([PR](https://github.com/Serial-ATA/lofty-rs/pull/387))

View file

@ -19,6 +19,7 @@ use crate::id3::v2::util::pairs::{
use crate::id3::v2::{KeyValueFrame, TimestampFrame};
use crate::mp4::AdvisoryRating;
use crate::picture::{Picture, PictureType, TOMBSTONE_PICTURE};
use crate::tag::items::Timestamp;
use crate::tag::{
try_parse_year, Accessor, ItemKey, ItemValue, MergeTag, SplitTag, Tag, TagExt, TagItem, TagType,
};
@ -31,7 +32,6 @@ use std::io::{Cursor, Write};
use std::ops::Deref;
use std::str::FromStr;
use crate::tag::items::Timestamp;
use lofty_attr::tag;
const USER_DEFINED_TEXT_FRAME_ID: &str = "TXXX";

View file

@ -1,11 +1,11 @@
use crate::config::ParsingMode;
use crate::error::{ErrorKind, LoftyError, Result};
use crate::macros::err;
use std::fmt::Display;
use std::io::Read;
use std::str::FromStr;
use crate::macros::err;
use byteorder::ReadBytesExt;
/// A subset of the ISO 8601 timestamp format