Author Topic: Can't alter track tags from plugin  (Read 3067 times)

Grimmr

  • Newbie
  • *
  • Posts: 2
This is probably me being stupid but I can't seem to get mbApiInterface.Library_SetFileTag to actually work.

I've tried calling it both on plugin startup and track change but the track metadata shown in the MB client isn't changing. here's the function call I'm making:
mbApiInterface.Library_SetFileTag(@"C:\Users\Grimmer\Desktop\app\music bee\Ape Escape 2 OST - Casino City.mp3", MetaDataType.Album, "test album");

I'm pretty sure the fileUrl is correct as it is the same as the one returned when fetching the currently playing track url (when this file is playing of course)

I've also tried editing the tags on a wav file and making sure that the song being edited is not currently playing but none of this has worked.

I've been unable to find any api documentation so I'm sure I'm just using the function wrong, any help would be appreciated.

Steven

  • Administrator
  • Sr. Member
  • *****
  • Posts: 34313
I suggest looking at boroda74's tag tools plugin source code or searching the forum as the api calls are described and discussed.
These the the other relevant calls
Library_CommitTagsToFile
and
MB_RefreshPanels

Grimmr

  • Newbie
  • *
  • Posts: 2
Thanks a lot for your help I was able to get it working using the functions you gave. Next time I'll poke around some plugin source first.