2014-04-08, 19:20
Hi,
I am making a simple addon for moving folders via FTP.
What I am doing now, is listing all the folders in the working dir, by adding listitems with xbmcplugin.addDirectoryItem(...)
What I want to do is show a select dialog every time one of these folders are pressed, so that I can choose an option with where to move the folder (I have some predetermined destinations).
The only way I can achieve this right now, is by adding a parameter to the listitem url, but this can be very slow, as I am doing all the same and unnecessary code again each time the dialog is opened.
Is there a way to carry out some code in the same .py file, instead of basically call itself with a parameter?
Thanks in advance,
- Mikael
I am making a simple addon for moving folders via FTP.
What I am doing now, is listing all the folders in the working dir, by adding listitems with xbmcplugin.addDirectoryItem(...)
What I want to do is show a select dialog every time one of these folders are pressed, so that I can choose an option with where to move the folder (I have some predetermined destinations).
The only way I can achieve this right now, is by adding a parameter to the listitem url, but this can be very slow, as I am doing all the same and unnecessary code again each time the dialog is opened.
Is there a way to carry out some code in the same .py file, instead of basically call itself with a parameter?
Thanks in advance,
- Mikael