package shakuhachi
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=8bd4675792ec93d705e68d4e43dc04aa1124fcaf644ae3a1a3fda68464276f95
sha512=712efcbe13e6e9d3336f72c2c25d4b41225cdd245f21adeeadc8aa4ad31ca9c905077e0873a3d1165d7c09357c009c859c4a7cd9c2d0c9bffc27144525594e72
doc/shakuhachi.metadata/SkhcMetadata/Metadata/index.html
Module SkhcMetadata.MetadataSource
Operation 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.
set_properties key values metadata sets the property associated with key to values.
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_list_first_non_empty keys metadata iterates through keys and returns values associated with the first key where there are some values. Returns an empty list if no value is associed with any keys.
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 was property_list with Keys.artist key.
artist ~sep metadata is artists composed with String.concat sep.
artists_v2 metadata is property_list_first_non_empty with Keys.artists and Keys.artist;
artist_v2 ~sep metadata is artists_v2 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.
set_artists artist metadata is set_property with Keys.artists key.
add_artists artist metadata is add_property with Keys.artists key.
set_artists_join ~default joins artists metadata sets Keys.artist to a join phrase of artists splitted by joins. If there is not enought joins, default is used afterward. set_artists_join also add all artists to Keys.artists.
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 is property_list with Keys.album_artist key
album_artist ~sep metadata is album_artists composed with String.concat sep.
album_artists_V2 metadata is property_list_first_non_empty with Keys.album_artists and Keys.album_artist
album_artist_v2 ~sep metadata is album_artists_v2 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.
set_album_artists album_artist metadata is set_property with Keys.album_artists key.
add_artists album_artist metadata is add_property with Keys.album_artists key.
set_album_artists_join ~default joins artists metadata sets Keys.album_artist to a join phrase of artists splitted by joins. If there is not enought joins, default is used afterward. set_album_artists_join also add all artists to Keys.album_artists.
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.
iter f metadata is properties_iter.
filter f metadata keeps all the properties in metadata that satisfy f.
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.
val apply :
?removes:string list ->
clear_picture:bool ->
save:bool ->
t ->
Otaglibc.t ->
boolapply ?removes ~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.
If removes, all properties inside removes are cleared from taglib.
pp format metadata is a pretty-printer.