module Id3v1: sig end
Reading and writing id3 v1.1 tags.
type
tag = {
|
mutable title : string ; |
|
mutable artist : string ; |
|
mutable album : string ; |
|
mutable year : string ; |
|
mutable comment : string ; |
|
mutable tracknum : int ; |
|
mutable genre : int ; |
}
An id3 v1.1 tag.
val has_tag : string -> bool
Check if the given file has a id3 v1.1 tag.
Raises Sys_error
if an error occurs while opening the file.
val read : string -> tag
Read the tags in a mp3 file.
RaisesNot_found
if the file doesn't contain tags.
Sys_error
if an error occurs while opening the file.
val write : tag -> string -> unit
Write the given tag structure into the given file.
Raises Sys_error
if an error occurs with the file.
val merge : tag -> tag -> tag
Merge two tags.
merge t1 t2
return a new tag where field values in t1
have been replaced by the ones in t2
when they are defined
in t2
.
val no_tag : tag
The empty tag.