PDA

View Full Version : How tell XBMC to move up a Folder?


jack83
2008-11-06, 22:02
The titel is the question :) How can I tell XBMC to move one or more folders up?

My structure is like this:

recordings
- name
- play
- delete

Where recordings and "Name" a virtual folders and play and delete are file items. If I now select delete, the plugin is called with a special url and the recording is deleted. Now, as the recording is deleted and can not be played anymore, I have to go up two dirs to the recording directory and refresh that.

Does anyone know hot to do that?

Thanks,
Jack

jmarshall
2008-11-07, 03:56
Doing so could be rather problematic. You could try feeding it the parentfolder action a couple of times, or alternatively as you are in a plugin, you could make those items directories that do the deletion then return the parent folder perhaps? Might screw up the navigation though - not sure.

jack83
2008-11-07, 08:44
How can I feed the action? I already tried it with directory items and I end up in the correct view, but it completly breaks navigation as I will only move further down the folder tree.

Nuka1195
2008-11-07, 15:39
in the endOfDirectory() call try updateListing=True.

check my signature for links to pydocs

jack83
2008-11-07, 16:21
That almost did the trick, but I'm still one folder to deep :sad:
Maybe I try a select dialog instead of a subdirectory.