Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Page 1 of 2 1 2 >
Topic Options
#74480 - 24/02/2002 12:01 Hijack v212: revised URL format
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14478
Loc: Canada
Okay, to fix a few issues with URL parsing, and to enable some new/upcoming features, I've rewritten some of the URL parsing used by khttpd in Hijack in v212.

This means that the existing "style sheets" for playlist browsing are likely all broken for v212, so the authors will need to release updated versions.

Basically, Hijack is now more conformant in the way it formats/expects URLs. Here are some examples of new "valid" URLs for Hijack:

http://empeg/anything_you_want?FID=101.htm
http://empeg/?FID=101.htm
http://empeg/?FID=101.xml
http://empeg/?FID=101&STYLE=/path/to/stylesheel.xsl.xml
http://empeg/?STYLE=/path/to/stylesheel.xsl&FID=101.xml
http://empeg/?SERIAL=%23101&FID=101.htm

As you may see, any combination of parameters/commands can be combined, separated by '&' characters.

The .mp3, .htm, .html, .m3u, .xml extensions at the end of any parameter list (a parameter list begins with '?') are tossed, after setting internal flags -- no change there.

The "FID=" parameter replaces the old "FID#" parameter. This new form causes the entire path (left of the '?') to be replaced with the path to the specified FID (hex). So a URL of http://empeg/anything?FID=101.htm actually loads http://empeg/drive?/fids/101.htm

This also allows (and encourages) the root playlist to be accessed more directly than before, using http://empeg/?FID=101.htm

This modified format will hold for some time, I suspect, so no worries of me changing it again.

Cheers

Top
#74481 - 24/02/2002 12:36 Re: Hijack v212: revised URL format [Re: mlord]
crocklobster
member

Registered: 19/12/2001
Posts: 108
Sweet, I'm updating the five stylesheets I have collected so far. Will post when done.

Chris

Edit: Actually, they still work. I am able to fix the ?serial and ?button links for my hosting web app though, and will post when those are done.



Edited by crocklobster (24/02/2002 12:41)

Top
#74482 - 24/02/2002 12:39 Re: Hijack v212: revised URL format [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14478
Loc: Canada
Oh yeah, one other small change: One used to be able to use "BUTTON%20VolDown" (for example), to send a buttoncode in a URL. This still works, but the space (%20) has to be replaced with '=' now (either would work before). So it becomes "BUTTON=VolDown".

Same deal for BUTTONRAW, as well.

Cheers

Top
#74483 - 24/02/2002 13:25 Re: Hijack v212: revised URL format [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31565
Loc: Seattle, WA
I'm having some trouble modifiying CharcoalGray99's XSL sheet to work properly with 212.

I can get most of it to work, but the button dealies don't seem to like the new format, and I'm having trouble modifying them to work.

I think I'll just sit on v211 until Charcoal can fix up the sheet himself...
_________________________
Tony Fabris

Top
#74484 - 24/02/2002 13:54 Re: Hijack v212: revised URL format [Re: tfabris]
crocklobster
member

Registered: 19/12/2001
Posts: 108
Actually, I fixed them on my hosting app. Check it out

Top
#74485 - 24/02/2002 13:58 Re: Hijack v212: revised URL format [Re: crocklobster]
crazymelki
enthusiast

Registered: 16/02/2001
Posts: 373
Loc: Switzerland
cool!
_________________________
crazymelki.com

Top
#74486 - 24/02/2002 14:00 Re: Hijack v212: revised URL format [Re: tfabris]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Ok, this should now work with hijack v212. IE6 or the XML 3.0 parser are required.

New features: Colored display, a home index page (no content yet)

Tom


Attachments
72364-xmlwebinterface5.zip (17 downloads)


Top
#74487 - 24/02/2002 14:12 Re: Hijack v212: revised URL format [Re: charcoalgray99]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Oh, and I can't take credit for the colored display. I got the idea from here.



Tom


Attachments
72366-coloreddisplay.gif (110 downloads)


Top
#74488 - 24/02/2002 14:17 Re: Hijack v212: revised URL format [Re: charcoalgray99]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14478
Loc: Canada
Looks like crap under Mozilla, but probably fixable.. have a look at the attached screen dump, and see what you can do with it.

Thanks.

-ml


Attachments
72368-xmldump.jpg (139 downloads)


Top
#74489 - 24/02/2002 14:21 Re: Hijack v212: revised URL format [Re: mlord]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Yikes. Ok... guess I'll have to install mozilla. I'll see what I can do.

Tom

Top
#74490 - 24/02/2002 14:25 Re: Hijack v212: revised URL format [Re: mlord]
crocklobster
member

Registered: 19/12/2001
Posts: 108
Wow, does Mozilla not like named entities like  ?

Also, is there a way to view the output of the stylesheet-applied xml in Mozilla?

In IE, you can install registry hacks that let you view the output of the stylesheet. That might be helpful in this case.


Top
#74491 - 24/02/2002 14:36 Re: Hijack v212: revised URL format [Re: crocklobster]
Janosch
journeyman

Registered: 03/12/2000
Posts: 50
Loc: Berlin, Germany
No neccessary to install hacks. As i ran into the special character issues i wanted to see the genrated xml. Just use "Save Link to..." and you can download the genrated xml file.

Works fine in IE 5.5 and above. Should propably work in Mozilla too.

janosch

Top
#74492 - 24/02/2002 14:40 Re: Hijack v212: revised URL format [Re: Janosch]
crocklobster
member

Registered: 19/12/2001
Posts: 108
I don't think you and I did the same thing. I'm talking about seeing the source of the stylesheet-applied xml. That's not the same thing as viewing the xml. You can do that at any time with view source.


Top
#74493 - 24/02/2002 14:52 Re: Hijack v212: revised URL format [Re: crocklobster]
Janosch
journeyman

Registered: 03/12/2000
Posts: 50
Loc: Berlin, Germany
No. When i try to see the source, IE 6.0 complains that this is not possible whe using xml. When i try to save the page via "File -> Save as" it is 0 Bytes.

But using "save to" gives me the generated source (containing the Playlist names and so on) of the displayed page.

I'm using Windows XP and IE 6.0.

Or do i still not get the clue ?

janosch

Top
#74494 - 24/02/2002 16:00 Re: Hijack v212: revised URL format [Re: crocklobster]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
In IE, you can install registry hacks that let you view the output of the stylesheet.

Do you have a link for that? I couldn't find anything on google.

I would love to view the output of the stylesheet in Mozilla, if anyone knows a way please speak up!

BTW, I don't have a "Save Link to..." option in IE6

Tom

Top
#74495 - 24/02/2002 16:07 Re: Hijack v212: revised URL format [Re: charcoalgray99]
Gary
stranger

Registered: 03/02/2002
Posts: 25
Maybe he means:

Right click on the link; pick "Save Target As..."


Top
#74496 - 24/02/2002 16:17 Re: Hijack v212: revised URL format [Re: Janosch]
Yang
addict

Registered: 14/01/2002
Posts: 443
Loc: Raleigh, NC
I'm using WinXP and IE6.0 and I can do View Source to see the XML. I can't do a Save File as though, which would be nice, to see what the HTML comes out to..

Top
#74497 - 24/02/2002 17:14 Re: Hijack v212: revised URL format [Re: Gary]
Janosch
journeyman

Registered: 03/12/2000
Posts: 50
Loc: Berlin, Germany
>Right click on the link; pick "Save Target As..."

Yes.....that is was i tried to explain. :-)

janosch

Top
#74498 - 24/02/2002 17:24 Re: Hijack v212: revised URL format [Re: Janosch]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Right click on the link; pick "Save Target As..."

Ok, but I still don't understand how to get the generated source. What link do I right click on?

If I create a direct link to the default.xsl file, saving that gives me only the xsl source. If I save target as after right clicking on a playlist, all I get is the hijack generated xml. I don't see a way to get the output.

Tom

Top
#74499 - 24/02/2002 17:29 Re: Hijack v212: revised URL format [Re: charcoalgray99]
crocklobster
member

Registered: 19/12/2001
Posts: 108
Check this out.

After you extract this and right click on each inf and select "install" and close and reopen all open browsers, you should see two new items in the right click context menu.

Chris

Top
#74500 - 24/02/2002 17:40 Re: Hijack v212: revised URL format [Re: charcoalgray99]
andygjones
journeyman

Registered: 30/07/2001
Posts: 63
Great job on all this XML stuff - looks excellent. Im still having one problem, and thats streaming WMA files. MP3's work fine, but any WMA playlists, and media player says invalid path. Im using media player under windows XP. I did have this working at one point - i think it was with HiJack v193, but since then i havnt been able to get it to work. Any ideas?
_________________________
RioCar 40GB RGB - can never decide

Top
#74501 - 24/02/2002 17:55 Re: Hijack v212: revised URL format [Re: crocklobster]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Thanks. That works great.

I managed to get the mozilla output, also. I'm attaching both, maybe someone can figure out why it doesn't display correctly in mozilla. All I can see is extra "a0" & "a1" prefixes that mozilla adds, other then that, everything looks like good html to me. Remember I know nothing about XML.

Tom


Attachments
72433-ie_mozilla_output.zip (21 downloads)


Top
#74502 - 24/02/2002 17:58 Re: Hijack v212: revised URL format [Re: andygjones]
charcoalgray99
enthusiast

Registered: 14/05/2001
Posts: 279
Im still having one problem, and thats streaming WMA files.

Does it break only when using a XML stylesheet? Or does it not work in the hijack html also?

Tom

Top
#74503 - 24/02/2002 18:07 Re: Hijack v212: revised URL format [Re: charcoalgray99]
andygjones
journeyman

Registered: 30/07/2001
Posts: 63
ok have just done a few tests and it looks like hijack, not the XML. Have just flashed back to a few different versions, and using the hijack html v193 works fine but v199 and v212 dont. Mark if you would like me to try more versions let me know.
_________________________
RioCar 40GB RGB - can never decide

Top
#74504 - 24/02/2002 18:25 Re: Hijack v212: revised URL format [Re: andygjones]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14478
Loc: Canada
See if you can pick off the HTTP headers from working/notworking and see what is different. Probably the "caching" headers.

-ml

Top
#74505 - 24/02/2002 18:52 Re: Hijack v212: revised URL format [Re: mlord]
andygjones
journeyman

Registered: 30/07/2001
Posts: 63
Ok im not sure how to go about reading the HTTP header's, but i have discovered something. Here is the first few lines of the m3u files that are passed to media player.

First a wma playlist that works from hijack V193:
#EXTM3U
#EXTINF:188,3 Colours Red - Pure
http://192.168.0.225/drive0/fids/dae0
#EXTINF:163,3 Colours Red - This is my Hollywood
http://192.168.0.225/drive0/fids/daf0

and one from v212 that doesnt work:
#EXTM3U
#EXTINF:188,3 Colours Red - Pure
http://192.168.0.225/3%20Colours%20Red%20%2D%20Pure?FID=dae0.wma
#EXTINF:163,3 Colours Red - This is my Hollywood
http://192.168.0.225/3%20Colours%20Red%20%2D%20This%20is%20my%20Hollywood?FID=daf0.wma

i tried removing the .wma extension from the url in the v212 playlist and it works fine. So looks like the extensions on the path after v193 are causing the problem. Seems strange tho that media player accepts the .mp3 extension, but is thrown off with a .wma one.
_________________________
RioCar 40GB RGB - can never decide

Top
#74506 - 24/02/2002 19:41 Re: Hijack v212: revised URL format [Re: mlord]
loren
carpal tunnel

Registered: 23/08/2000
Posts: 3826
Loc: SLC, UT, USA
Alright you release nuts... who wants to write up a quick FAQ entry about all this XML/ XSL stuff?! I've been out non stop this weekend (well, that or working on my component box =) and am having a tough time keeping up with you guys and updating the Hijack FAQ. I still need to get up an HTTP and FTP section, which i'll do tonight, or early this week... but i would HIGHLY appreciate a quick writeup on this stuff, as i'm fairly lost when it comes to XML and don't have the time on my hands at the moment to read up on all of this.

I have however caught up on all of the changed/new config.ini, virtual button code, and PopUp stuff that Mark's done since he returned from his week off.

I knew i was gonna get swamped trying to keep up with all the Hijack releases... but sheesh!
_________________________
|| loren ||

Top
#74507 - 25/02/2002 08:45 Hijack v214: sorry, guys.. [Re: crocklobster]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14478
Loc: Canada
How does that "tune" go.. ? something like, "Ooops, I did it again.."

Hijack v214 is released, and it breaks the style sheet stuff again. This version cleans up something I neglected last time around, but at this point things really are cleaned up. So no more gratuitous breakage in future versions, really!

The change here is that the "playlist" and "tune" extensions for the playlist browser must be specified as EXT=.xxx, instead of just being blindly appended to the URL as in the past. This fixes a couple of internal bugs, and makes it easier to do other neat stuff in the future.

Obligatory example:

http://empeg/?FID=101&EXT=.htm
http://empeg/?FID=101&EXT=.xml

Note that the EXT need not be the last item on the line, but it may help some dumb browsers to put it at the end anyway.

In particular, WinMediaPlayer probably will work again with .wma and .wav streaming, not that I really know or care about that.

And the "Save as" dialogs in Netscape and Mozilla probably work correctly on induhvidual tune files for the first time (or at least they do for me).

So, after stylesheets are updated, this oughta be nicer for everyone. Except for anything I may have broken by accident..



Cheers


Top
#74508 - 25/02/2002 09:01 Re: Hijack v214: sorry, guys.. [Re: mlord]
crocklobster
member

Registered: 19/12/2001
Posts: 108
Speaking of broken by accident. Know what's not really working now... If khhtpd_files=0, things don't behave well. If I make a request for http://10.1.5.30?FID=101.xml with files=0, I get a 403 Access Not Permitted.

By the way, this is still with 213

Top
#74509 - 25/02/2002 09:20 Re: Hijack v214: sorry, guys.. [Re: crocklobster]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14478
Loc: Canada
Well, I don't know if it's broken or not in v213, but the access protection works fine here on v214. Note that the URL will be different in v214, http://10.1.5.30?FID=101&EXT=.xml

Cheers

Top
Page 1 of 2 1 2 >