PDA

View Full Version : enter virtual directory without adding to hierarchy


rwparris2
2008-12-21, 06:14
Is there a way to make a virtual directory that doesn't add to the hierarchy?

So I have

Folder A (listings : Folder A1 Folder B1 Folder C1)
--Folder B1 (listings Genre A, Genre B, Genre C)
----Genre A (listings Genre B, Genre C, movie 1, movie 2, movie 3...)

now, if from Genre A, I open genre B & then click on genre A again, then C I get this stupid heirchy:

Folder A (listings : Folder A1 Folder B1 Folder C1)
--Folder B1 (listings Genre A, Genre B, Genre C)
----Genre A (listings Genre B, Genre C, movie 1, movie 2, movie 3...)
------Genre B (listings Genre A, Genre C, movie 1, movie 2, movie 3...)
--------Genre A (listings Genre B, Genre C, movie 1, movie 2, movie 3...)
----------Genre C (listings Genre A, Genre B, movie 1, movie 2, movie 3...)

when I really want is:

Folder A (listings : Folder A1 Folder B1 Folder C1)
--Folder B1 (listings Genre A, Genre B, Genre C)
----Genre C (listings Genre A, Genre B, movie 1, movie 2, movie 3...)

Voinage
2008-12-21, 06:57
You wouldn`t be fixing that hulu library thing, by any chance-RW ?

jmarshall
2008-12-22, 03:45
Are the URL's you are passing it got more heirachy at all? I don't believe we have anything in place to check whether the user is going up the heirachy at all in the history stuff.

rwparris2
2008-12-22, 05:53
Are the URL's you are passing it got more heirachy at all? I don't believe we have anything in place to check whether the user is going up the heirachy at all in the history stuff.

Not in this instance, no. 'Genre X' should be the top of the heirchy.
Instead of entering a new directory, I would rather replace the one I'm currently in.

Kind of like ActivateWindow() vs ReplaceWindow()

come to think of it... I probably could just use ReplaceWindow(plugin://...) right? Oh well I'll try it out next time I already deleted this part of the code.

You wouldn`t be fixing that hulu library thing, by any chance-RW ?

yeah, I'm trying too. probably ~ 90% done.

but I decided to not worry about this, I got some weird bug that cropped up all the sudden

edit - yeah, so about that weird bug, that was my HDD dieing. and of course I haven't committed anything useful to SVN, so take that 90% and put it back to ~5-10%

sigh... everything was soo good too :(

spiff
2008-12-22, 22:22
there is certainly support for replacing the stuff in the current listing. i distinctly remember writing code for it which was replaced by better code

doze
2008-12-23, 03:22
in the endOfDirectory() call, try updateListing=True or updateListing=False, don't remember which one it was, but it "disabled" the history and .. will go up to the "last known" folder.

rwparris2
2008-12-25, 00:44
in the endOfDirectory() call, try updateListing=True or updateListing=False, don't remember which one it was, but it "disabled" the history and .. will go up to the "last known" folder.

This works fine, where did you find it?

I looked in the source browser in trac at xbmcplugin.cpp but didn't see it mentioned?