TagLib
Taglib bindings for Elixir.
Documentation
See the online documentation for more information.
Installation
First, ensure you have the TagLib libraries installed on your system:
OSX
brew install taglib
Ubuntu
sudo apt-get install libtag1-dev
Next, add :taglib
to your list of dependencies in mix.exs
:
def deps do
[{:taglib, "~> 0.2"}]
end
Usage
iex> {:ok, t} = Taglib.new("song.mp3")
{:ok, #Taglib<0.0.7.1219>}
iex> Taglib.title(t)
"Mi Mujer"
iex> Taglib.duration(t)
438