Taglib v0.2.3 Taglib View Source
Elixir bindings for Taglib.
This module provides a simple wrapper around the Taglib C++ API.
Examples
iex> {:ok, t} = Taglib.new("song.mp3")
{:ok, #Taglib<0.0.7.1219>}
iex> Taglib.title(t)
"Mi Mujer"
iex> Taglib.duration(t)
438
Link to this section Summary
Functions
Returns the album name of the song
Returns the artist name of the song
Returns the cover-art picture of the song
Returns true
if the track is part of a compilation; elsewhise returns false
Returns the disc number of the song
Returns the audio length of the song
Returns the genre of the song
Creates a new file reference for the given path
Returns the tags of the song as map
Returns the title of the song
Returns the track number of the song
Returns the year of the song
Link to this section Types
mimetype()
View Source
mimetype() :: String.t()
mimetype() :: String.t()
Link to this section Functions
album(taglib) View Source
Returns the album name of the song.
artist(taglib) View Source
Returns the artist name of the song.
artwork(taglib) View Source
Returns the cover-art picture of the song.
compilation(taglib) View Source
Returns true
if the track is part of a compilation; elsewhise returns false
.
disc(taglib) View Source
Returns the disc number of the song.
duration(taglib) View Source
Returns the audio length of the song.
genre(taglib) View Source
Returns the genre of the song.
new(path) View Source
Creates a new file reference for the given path
.
props(taglib) View Source
Returns the tags of the song as map.
title(taglib) View Source
Returns the title of the song.
track(taglib) View Source
Returns the track number of the song.
year(taglib) View Source
Returns the year of the song.