Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

How am I supposed to set tags? #4

Open
Tyrn opened this issue Nov 17, 2019 · 0 comments
Open

How am I supposed to set tags? #4

Tyrn opened this issue Nov 17, 2019 · 0 comments

Comments

@Tyrn
Copy link

Tyrn commented Nov 17, 2019

Hi,

There are no examples of setting tags. There is Taglib.props() function, which I tried to employ like this:

    if tag_list != [] do
      {:ok, t} = Taglib.new(dst)
      Enum.reduce(tag_list, Taglib.props(t), fn x, p -> 
        Map.put(p, Enum.at(x, 0), Enum.at(x, 1))
      end)
    end

No runtime errors; no result, either.

Taglist looks like this: [["tag", "value"], ["tag", "value"], ...]

Also, I couldn't find anything like save() function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant