Author Topic: using api to change rating in auto playlist  (Read 569 times)

stax76

  • Newbie
  • *
  • Posts: 15
I'm changing the rating which works fine. How do I remove the track from the current view if it don't fit the rating criteria of the current auto playlist? The built in rating action does that too.

Code
    Sub Rate1(sender As Object, e As EventArgs)
        Dim currentPath = mbApiInterface.NowPlaying_GetFileUrl()
        mbApiInterface.Player_PlayNextTrack()
        mbApiInterface.Library_SetFileTag(currentPath, MetaDataType.Rating, "1")
        mbApiInterface.Library_CommitTagsToFile(currentPath)
        mbApiInterface.MB_RefreshPanels()
    End Sub


Steven

  • Administrator
  • Hero Member
  • *****
  • Posts: 26329
Its an oversight on my part which i will correct. But only for v3.1

edit:
actually it should already be refreshing auto-playlists when MB_RefreshPanels() is called but i see there is a bug which should be fixed for the next v3.1 update
Last Edit: March 14, 2017, 08:47:07 PM by Steven


stax76

  • Newbie
  • *
  • Posts: 15
Thanks for the build, works fine.


I'm pretty much finished with my migration from MM, I was using it almost daily 11 years, R.I.P.