Skip to content

Support multiple field values (e.g. multiple artists) #66

@UgnilJoZ

Description

@UgnilJoZ

Summary

Ogg Vorbis I format specification mentions multiple possible values per field name:

Field names are not required to be unique (occur once) within a comment header. As an example, assume a track was recorded by three well know artists; the following is permissible, and encouraged:

ARTIST=Dizzy Gillespie 
ARTIST=Sonny Rollins
ARTIST=Sonny Stitt 

The Accessor trait handles the artist as String and &str, which is a single value, or sometimes possibly a string that represents a list using a separator.

It seems to be currently impossible to get a list of the artists embedded in Vorbis Comments.

API design

impl Accessor {
    pub fn artists(&self) -> impl Iterator<Item=&str>;
    /// Replace the list of artists
    pub fn set_artists(&mut self, values: impl Iterator<Item=&str>);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions