bklaas Wrote:
> I should note that while this script is specific to publicradiofan.com,
> the possibility of this to be generic to all sites exists, and would
> extend the appeal immeasurably. Ideally, what I'd like to see is what
> Steve Baumgarten mentioned on the Nokia770 thread-- a right-click on
> any link that gives you an option to "stream directly to slimserver".
> That would require this to work as an extension rather than a
> greasemonkey script, but there is a pretty clear path documented on how
> to push a greasemonkey script into a full-fledged XPI extention.
Installation went well. Here are a few notes from my install. You
should mention that that you should save the file locally, edit it for
the server and mac address, then "revisit" the script locally.
I installed greasemonkey then "revisted" the script on your page
assuming that I would get to edit the user defined parameters upon
install. It wasn't a problem, just not clear for a first time
greasemonkey user.
I also didn't realize at first that I had to point directly at the
mp.gif to find the altered url. Once that was found and I clicked on
the link, I got the following message:
Code:
--------------------
403 Forbidden: status.html
In order to request this URL from a Bookmark/Favorite, or some
means other than following a link from the SlimServer web
interface, you will need to use a URL with a \"cauth\" security
parameter. If you received this error when following a link from
the SlimServer web interface, you will want to make sure your web
browser software (including proxy servers and spyware/privacy
software) is allowing \"Referer\" headers to be sent. Below is
the appropriate URL for the URL you attempted.
http://centos:9000/status.html?p2=http%3A%2F%2F209.165.135.138%3A8000%2Flisten.pls&p0=playlist&p1=play&player=00:04:20:04:02:f4;cauth=00ac3b1d2a6b356f3e7b53a8b0a60c65
Because your CSRF protection level is set at 'MEDIUM', you can
use the same ";cauth=" value for any URL; this means you should
be more careful who you share your URLs with.
--------------------
Once I clicked on the suggested reformatted url my SliMP3 fired right
up. I guess you might need to add a "cauth" security parameter to the
reformatted url, whatever that might be. Is this something that you
have encountered on your system? I am using CentOS 4.1 (Redhat EL4
based) with Slimserver 6.5 (12/30 nightly) and making the request from
XP SP2 using Firefox 1.5, Greasemonkey 0.6.4.
I was also interested how difficult it would be able to also alter the
urls for WMA and RA/RAM files since these can get transcoded thanks to
AlienBBCs mplayer.sh. Just a thought.
I have to agree that an extension does get the mind going....
I'll bang on it a little more and let you know how it goes.
--Tom Malsbury
--
malsbury
------------------------------------------------------------------------
malsbury's Profile: http://forums.slimdevices.com/member.php?userid=57
View this thread: http://forums.slimdevices.com/showthread.php?t=19751
_______________________________________________
Discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss