[mythtv-users] Re: parsing websites for mythstream

Phill Edwards philledwards at gmail.com
Mon Sep 12 11:59:55 UTC 2005


> OK - I've had another few minutes playing and this is what I found for
> this particular site - its a bit of poking about, saving pages and looking
> at the overall structure looking for javascript stuff.
> 
> Called up the embedded player and (in Firefox this is) right clicked and
> did a save page. This creates a file (webradio.php) and a directory of the
> files associated with it. Looking in the webradio_files directory I find a
> file called swr3player (this looks interesting but it looks like its
> calling other functions somewhere) and a directory called swr3player_data
> and in that a file called webplayer.js. This is where all the action is
> and a quick look through it shows a few functions that decide how to play
> (embedded RA, WME, external etc) and they get a parameter passed across
> that has the channel number 01 to 10. I then selected one of the url
> strings and used wget to fetch the contents - note the quotes and the fact
> what I've replaced  '+Eingang' with the channel number 01!!
> wget
> 'http://lsd.newmedia.tiscali-business.com/bb/redirect.lsc?stream=swr3/channel01.rm&content=live&media=rm'
> -O xxx
> 
> The contents of the file xxx is the URL for mythstream, in this case
> rtsp://195.52.221.172/farm/*/encoder/swr3/channel01.rm
> 
> I hope that gives an idea of the logic of these embedded things - its a
> bit luck finding the right page to save to disk so you can see if there is
> anything obvious in it - all the ,gif, .jpg files can be ignored, a real
> bonus if it sticks out as in this case as a .js filename :-))

Also, look here for other ways to find the stream URLs -
http://mysettopbox.tv/phpBB2/viewtopic.php?t=2832&highlight=

Regards,
Phill


More information about the mythtv-users mailing list