Hey guys,
I think there is a misunderstanding here. What I am trying to do is have a directory filled with Directoryitems assigned to url's. This directory is created when starting my plugin.
Every item in this list is created by this code:
Code:
urlpic = 'plugin://plugin.image.xkcd/?cat=view&url='+url
item = addItem(name, urlpic, 'DefaultImage.png')
You can also subsitute plugin://plugin.image.xkcd/ with sys.arv[0]
When calling one of those url, I want to scrape another url (the url of the actual picture) and display this url's target with the setResolvedUrl command. This is triggered because the variable cat = view
I hope this clears everything up a bit....I am not calling the plugin with a command, I am just using the plugin url given to a DirectoryItem - I thougt this works?
But thanks HenrikDK, I will try if I can work something out with your help.
Ah btw...I am not doing anything in the context menu at all...did I write that somewhere?