You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lofty/src/id3/v2/tag.rs
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -88,18 +88,18 @@ macro_rules! impl_accessor {
88
88
///
89
89
/// When converting from a [`Tag`] to an `Id3v2Tag`, some frames may need editing.
90
90
///
91
-
/// * [`ItemKey::Comment`] and [`ItemKey::Lyrics`] - Unlike a normal text frame, these require a language. See [`CommentFrame`] and [`UnsynchronizedTextFrame`] respectively.
92
-
/// An attempt is made to create this information, but it may be incorrect.
93
-
/// * `language` - Unknown and set to "XXX"
94
-
/// * `description` - Left empty, which is invalid if there are more than one of these frames. These frames can only be identified
91
+
/// * [`ItemKey::Comment`] and [`ItemKey::Lyrics`] - Unlike a normal text frame, these require a languageand description.
92
+
/// * If these values aren't specified in the [`TagItem`], it will be filled in with (possibly incorrect) defaults.
93
+
/// * `language` - Unknown and set to "XXX"
94
+
/// * `description` - Left empty, which is invalid if there are more than one of these frames. These frames can only be identified
95
95
/// by their descriptions, and as such they are expected to be unique for each.
96
-
/// * [`ItemKey::Unknown("WXXX" | "TXXX")`](ItemKey::Unknown) - These frames are also identified by their descriptions.
96
+
/// * See [`CommentFrame`] and [`UnsynchronizedTextFrame`] respectively.
97
97
///
98
98
/// ### To `Tag`
99
99
///
100
-
/// * TXXX/WXXX - These frames will be stored as an [`ItemKey`] by their description. Some variants exist for these descriptions, such as the one for `ReplayGain`,
101
-
/// otherwise [`ItemKey::Unknown`] will be used.
102
-
/// * Frames that require a language (COMM/USLT) - With ID3v2 being the only format that allows for language-specific items, this information is not retained.
100
+
/// * TXXX/WXXX - These frames will be stored as an [`ItemKey`] by their description. Some variants exist
101
+
/// for these descriptions, such as [`ItemKey::ReplayGainAlbumGain`]. Anything without a mapping will
102
+
/// be discarded.
103
103
/// * POPM - These frames will be stored as a raw [`ItemValue::Binary`] value under the [`ItemKey::Popularimeter`] key.
0 commit comments