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
I've been having issues getting the description key,
I'm on version 0.22.4 and I assumed comment method would fallback on description Nope
so for some reason tag.get_string(&ItemKey::Description) failed to get the description, instead I had to come up with this for it
// As a last resort, try to find a custom key named "DESCRIPTION" (case-insensitive)for item in tag.items(){// Check if the key is an unknown/custom key and matches "description"ifletItemKey::Unknown(s) = item.key(){if s.eq_ignore_ascii_case("description"){ifletSome(text) = item.value().text(){returnSome(text.to_string());}}}}
Not pretty, but it works for now till the next update
Expected behavior
Return the Description key's value when I do tag.get_string(&ItemKey::Description)
I'm on version 0.22.4 and I assumed comment method would fallback on description Nope
ItemKey::Comment and ItemKey::Description aren't the same thing AFAICT.
* https://xiph.org/vorbis/doc/v-comment.html#fieldnames
* It seems for Vorbis Comments "DESCRIPTION" was _meant_ to be the field for comments, but didn't catch on.
* https://github.com/get-iplayer/get_iplayer/wiki/tagging
* It only seems to have a special meaning in MP4 for video descriptions (probably from iTunes)
Return the Description key's value when I do tag.get_string(&ItemKey::Description)
To be clear, the actual issue is that the ItemKey conversion is case-sensitive, and not that Comment != Description?
Ah, I see, thanks for the clarification (I use vorbis most the time so that's where I'm basing that apon)
To be clear, the actual issue is that the ItemKey conversion is case-sensitive
Has this been resolved in previous discussions or is this still a topic of discussion
Has this been resolved in previous discussions or is this still a topic of discussion
I thought it might be the issue, but conversions are already case-insensitive. There's just no mapping for "DESCRIPTION" -> ItemKey::Description for Vorbis Comments:
I guess I just skipped it when I added ItemKey::Description, since it's identical to ItemKey::Comment in this case.
I'll have to look into "DESCRIPTION" more and see if maybe I should just merge it into ItemKey::Comment in Vorbis Comments. I've never seen it in the wild.
Looked into it a bit, and it doesn't look like anyone really uses "DESCRIPTION" in Vorbis Comments. I think the original intent was for it to be a comment field, but "COMMENT" ended up winning.
Since "DESCRIPTION" is a distinct field in MP4 though, I imagine some converted files in the wild have both "COMMENT"s and "DESCRIPTION"s, so I'll keep them distinct.
In just about every case though, you probably just want ItemKey::Comment.
Looked into it a bit, and it doesn't look like anyone really uses "DESCRIPTION" in Vorbis Comments. I think the original intent was for it to be a comment field, but "COMMENT" ended up winning.
Since "DESCRIPTION" is a distinct field in MP4 though, I imagine some converted files in the wild have both "COMMENT"s and "DESCRIPTION"s, so I'll keep them distinct.
In just about every case though, you probably just want ItemKey::Comment.
Makes sense.
I thought it might be the issue, but conversions are already case-insensitive. There's just no mapping for "DESCRIPTION" -> ItemKey::Description for Vorbis Comments:
Are you going to add mappings for DESCRIPTION to ItemKey::Description in vorbis?
Activity
Serial-ATA commentedon Jan 5, 2026
ItemKey::CommentandItemKey::Descriptionaren't the same thing AFAICT.To be clear, the actual issue is that the
ItemKeyconversion is case-sensitive, and not thatComment!=Description?UnknownSuperficialNight commentedon Jan 5, 2026
Ah, I see, thanks for the clarification (I use vorbis most the time so that's where I'm basing that apon)
Has this been resolved in previous discussions or is this still a topic of discussion
Serial-ATA commentedon Jan 5, 2026
I thought it might be the issue, but conversions are already case-insensitive. There's just no mapping for
"DESCRIPTION"->ItemKey::Descriptionfor Vorbis Comments:lofty-rs/lofty/src/tag/item.rs
Lines 373 to 454 in 2619847
I guess I just skipped it when I added
ItemKey::Description, since it's identical toItemKey::Commentin this case.I'll have to look into
"DESCRIPTION"more and see if maybe I should just merge it intoItemKey::Commentin Vorbis Comments. I've never seen it in the wild.Serial-ATA commentedon Jan 7, 2026
Looked into it a bit, and it doesn't look like anyone really uses
"DESCRIPTION"in Vorbis Comments. I think the original intent was for it to be a comment field, but"COMMENT"ended up winning.Since
"DESCRIPTION"is a distinct field in MP4 though, I imagine some converted files in the wild have both"COMMENT"s and"DESCRIPTION"s, so I'll keep them distinct.In just about every case though, you probably just want
ItemKey::Comment.UnknownSuperficialNight commentedon Jan 7, 2026
Makes sense.
Are you going to add mappings for
DESCRIPTIONtoItemKey::Descriptionin vorbis?Serial-ATA commentedon Jan 7, 2026
Yep, fixed now :)