SkhcMetadata.MetadataSourceOperation on music's metadata. This module on its own doesn't modify the file.
type of metadata
val init :
Otaglibc.audioproperties option ->
Otaglibc.picture array ->
Values.t Properties.t ->
tinit audioproperties pictures properties creates metadata from audioproperties, pictures and properties.
val of_properties :
?audioproperties:Otaglibc.audioproperties ->
?covers:Otaglibc.picture array ->
Values.t Properties.t ->
tof_properties ?audioproperties ?covers properties is init with optional audioproperties and covers.
set_property key value metadata sets the property associated with key to value.
add_property key value metadata adds value to the list of the property associated with key.
remove_property key metadata removes values associated with key from metadata.
property key metadata returns values associated with key.
properties metadata returns all properties.
property_min key metadata returns the min value, as defined by Values.min_elt_opt, associated with key.
property_list key metadata returns values associated with key. Returns an empty list if no value is associed with key.
property_match conv key metadata returns the first value associated with key where conv is Some.
title metadata is property_min with Keys.title key.
set_title title metadata is set_property with Keys.title key.
title_sort metadata is property_min with Keys.title_sort key.
set_title_sort title_sort metadata is set_property with Keys.title_sort key.
artists metadata is property_list with Keys.artist key.
artist ~sep metadata is artists composed with String.concat sep.
set_artist artist metadata is set_property with Keys.artist key.
add_artist artist metadata is add_property with Keys.artist key.
artist_sort metadata is property_min with Keys.artist_sort key.
set_artist_sort artist_sort metadata is set_property with Keys.artist_sort key.
album_artists metadata is property_list with Keys.album_artist key.
album_artist ~sep metadata is album_artists composed with String.concat sep.
set_album_artist album_artist metadata is set_property with Keys.album_artist key.
add_artist album_artist metadata is add_property with Keys.album_artist key.
composers metadata is property_list with Keys.composer key.
composer ~sep metadata is composer composed with String.concat sep.
set_composer composer metadata is set_property with Keys.composer key.
add_composer composer metadata is add_property with Keys.composer key.
album metadata is property_min with Keys.album key.
set_album album metadata is set_property with Keys.album key.
album_sort metadata is property_min with Keys.album_sort key.
set_album_sort album_sort metadata is set_property with Keys.album_sort key.
track metadata is property_min with Keys.track key. conv takes all the valid integer token from the value and tries to parse it as a string.
set_track track metadata is set_property with Keys.track key.
comments metadata is property_list with Keys.comment key.
comment ~sep metadata is comments composed with String.concat sep.
set_comment comment metadata is set_property with Keys.comment key.
add_comment comment metadata is add_property with Keys.comment key.
genre metadata is property_min with Keys.genre key.
set_genre album metadata is set_property with Keys.album key.
year metadata is property_match with Keys.date key. conv takes all the valid integer token from the value and tries to parse it as a string.
set_year year metadata is set_property with Keys.date
disc metadata is property_match with Keys.disc_number key. conv takes all the valid integer token from the value and tries to parse it as a string.
set_disc disc metadata is set_property with Keys.disc_number key.
covers metadata returns pictures inside metadata.
add_cover ?(first:true) picture metadata adds picture to metadata. If first, picture is preprended to the list of pictures. At the end otherwise.
audioproperties metadata returns audioproperties associated with metadata.
set_audioproperties audioproperties metadata sets audioproperties in metadata.
set_audioproperties' audioproperties metadata is set_audioproperties but wraps audioproperties in Some.
properties_iter f metadata applies f to each property.
unicode_normalize form metadata returns metadata with all properties coverted to form.
is_set field metadata tests whether value associed with field is set.
of_taglib taglib creates a metadata from a taglib handler.
apply ~clear_picture ~save metadata taglib applies all properties of metadata to taglib handlers. If clear_picture, all pictures inside taglib are removed before adding ones inside metadata. If save, calls Otaglibc.save. Returns whether the file was saved.
pp format metadata is a pretty-printer.