PDA

View Full Version : Control where ".." goes from a virtual folder?


doze
2008-10-31, 20:56
Here's another stupid question. Obviously I'm using the video plug-ins little bit differently as they are designed to use, so you could say that I'm doing it all wrong and would be better off with a script, BUT: :)

Is it possible to control where we return from a virtual folder when selecting ".." item. Let me explain more what I'm doing.. I'm creating a video plug-in to use xbox xbmc as my DVB/IP-TV box. I have a IP-TV setup called SaunaVisio from my internet provider (Saunalahti, Finnish company) what offers recording through streaming. So I have created a video plugin what parses the HTML page that they offer and makes views for recordings, schedules, epg and livetv in xbmc as virtual folders.

Now the problem what I have is with the EPG "view" folder. I have made it like this:

(These are all virtual folders that points back to my plugin with url parameters)
EPG
|
|-Channel 1
| |
| |-Next day (virtual folder that creates next day's program listing)
| |-Previous day (same as above but for previous day)
| |-Program 1
| |-Program 2
| |- .........
|
|-Channel 2
|-.........

So if I go to view the programs from Channel 1 and select the next day for couple times, when I want to come back to the channel listing, I need to, of course, select back (..) multiple times as I have been going through multiple virtual folders and it steps all them back one by one.

What I'd like to do is any of these:
* To be able to set the url for the ".." item temporarily, so that it would always return to the channel listing when browsing programs.
* To be able to say how many folders back the ".." should go eg. same as javascript:history.go(-n) for internet browsers.
* To be able to temporarily disable the system that tracks where ".." should go from a virtual folder and use the latest know position.

So.. is any of these possible?

rwparris2
2008-11-01, 00:25
Is there a good reason you can't use "back to channel 1", "back to EPG", etc and give params to go to where you want?

I doubt it is possible, but even if it is, you're very likely only going to confuse users by having ".." not behave like they expect it.

FWIW, this seems like a fine use of Video Plugins, even if it could be presented better by a script.

Also did you know there are plans to incorporate an EPG and more directly into xbmc?
Not that I'm trying to discourage you from writing your plugin, it will be a while before any of that work comes to us peons as something useful

http://xbmc.org/forum/showthread.php?p=199409
http://xbmc.org/forum/showthread.php?t=28918

doze
2008-11-01, 01:34
Is there a good reason you can't use "back to channel 1", "back to EPG", etc and give params to go to where you want?

I doubt it is possible, but even if it is, you're very likely only going to confuse users by having ".." not behave like they expect it.
No.. no special reason. But I'd like to hide the ".." item then, no point of having multiple "back" items, it would confuse the users also. Is it possible to hide the ".." item?

I was just doing this for my own use at first, so decided to do it with a video plugin quickly, but it becomes more and more obvious every day as I progress that I should have chosen to create a script even if it takes extra work then to do the UI.


Also did you know there are plans to incorporate an EPG and more directly into xbmc?
Yes. I knew that. It'll be sweet, but long way to go still..

rwparris2
2008-11-01, 02:36
No.. no special reason. But I'd like to hide the ".." item then, no point of having multiple "back" items, it would confuse the users also. Is it possible to hide the ".." item?

I was just doing this for my own use at first, so decided to do it with a video plugin quickly, but it becomes more and more obvious every day as I progress that I should have chosen to create a script even if it takes extra work then to do the UI.


Yes. I knew that. It'll be sweet, but long way to go still..

hidingn the .. is in settings somewhere, i don't know about doing it programmatically for your plugin.