Posts: 635
Joined: Nov 2012
Reputation:
15
phate89
Team-Kodi Member
Posts: 635
Hi. I'm trying to create a context menu addon that allows me to add or remove a tag to a media. The problem is that I don't know where I can get all the existing tags. I can retrieve all the movies and create the list but it's very slow. Is there a better method?
Posts: 6,684
Joined: Mar 2009
Reputation:
147
phil65
Retired Team-Kodi Member
Posts: 6,684
2015-06-30, 16:27
(This post was last modified: 2015-06-30, 16:27 by phil65.)
Files.GetDirectory() + the VFS path of tags node should do the trick.
Posts: 635
Joined: Nov 2012
Reputation:
15
phate89
Team-Kodi Member
Posts: 635
Thanks it works well!
Maybe I will create a pull request for J to have a "GetTags" method like you have a "GetGenres" method
Thanks again!