malsbury Wrote:
> I guess you might need to add a "cauth" security parameter to the
> reformatted url, whatever that might be. Since it said I could use the same
> "cauth" value for any request I
edited the script and added this:
Code:
--------------------
var urlStubTwo = '&p0=playlist&p1=play&player=' +macAddr +
';cauth=00ac3b1d2a6b356f3e7b53a8b0a60c65';
--------------------
It is now working fine for me when I click on any mp.gif link without
the warning message.
malsbury Wrote:
> I was also interested how difficult it would be able to also alter the
> urls for WMA and RA/RAM filesAnswered my own question, no very hard at all...
> I simply repeated your
mp.gif search for the other two.
Code:
--------------------
if (parent.href) {
// see if the img src is mp.gif, (which indicates an mp3
stream), rm.gif (which indicates a RealAudio stream), or wm.gif (which
indicates a Windows Media stream).
var match = thisElement.src.match(/mp\.gif/);
if (match) {
// append href of link to stub
var urlStubThree = encodeURIComponent(parent.href);
var rewrite = urlStubOne + urlStubThree + urlStubTwo;
// remove current href link
parent.removeAttribute('href');
// add new one
parent.setAttribute('href', rewrite);
}
var match = thisElement.src.match(/rm\.gif/);
if (match) {
// append href of link to stub
var urlStubThree = encodeURIComponent(parent.href);
var rewrite = urlStubOne + urlStubThree + urlStubTwo;
// remove current href link
parent.removeAttribute('href');
// add new one
parent.setAttribute('href', rewrite);
}
var match = thisElement.src.match(/wm\.gif/);
if (match) {
// append href of link to stub
var urlStubThree = encodeURIComponent(parent.href);
var rewrite = urlStubOne + urlStubThree + urlStubTwo;
// remove current href link
parent.removeAttribute('href');
// add new one
parent.setAttribute('href', rewrite);
}
}
--------------------
--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