Taglib v0.1.0 Taglib

Elixir bindings for Taglib.

This module provides a simple wrapper around the Taglib C++ API.

iex> {:ok, ref} = Taglib.new("song.mp3")
{:ok, ""}
iex> Taglib.tag_title(ref)
"Mi Mujer"
iex> Taglib.audio_length(ref)
438

Summary

Functions

Returns the audio length for the given fileref

Create a new file reference for the given filepath

Returns the album for the given fileref

Returns the artist for the given fileref

Returns the genre for the given fileref

Returns the title for the given fileref

Returns the track number for the given fileref

Returns the year for the given fileref

Functions

audio_length(fileref)

Returns the audio length for the given fileref.

new(filepath)

Create a new file reference for the given filepath.

tag_album(fileref)

Returns the album for the given fileref.

tag_artist(fileref)

Returns the artist for the given fileref.

tag_genre(fileref)

Returns the genre for the given fileref.

tag_title(fileref)

Returns the title for the given fileref.

tag_track(fileref)

Returns the track number for the given fileref.

tag_year(fileref)

Returns the year for the given fileref.