Jump to content

Fox Reinsch

Resident
  • Posts

    5
  • Joined

  • Last visited

Reputation

2 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Thanks for all the help, I have all my free IndieSpectrum Radio radios working again as a new Version 6. Now I have to purge the old ones off the marketplace and get up the new ones.
  2. The fix arton provided, thanks arton, worked for the radios that have now playing hover text but it did not for the ones that have alphanumeric displays. Maybe someone can help with the alphanumeric root script, http call section below: default { state_entry() { llMessageLinked(LINK_SET,204000,"","3"); HTTPReq = llHTTPRequest(URL + "/7.html HTTP/1.0\nUser-Agent: XML Getter (Mozilla Compatible)\n\n",[],""); llSetTimerEvent(Rate); } timer() { HTTPReq = llHTTPRequest(URL + "/7.html HTTP/1.0\nUser-Agent: XML Getter (Mozilla Compatible)\n\n",[],""); } http_response(key request_id, integer status, list metadata, string body) { if(request_id != HTTPReq)return; // CmdLin = llCSV2List(body); // // Arg(0) = Current Listeners // Arg(1) = Connected? // Arg(2) = Peak Listeners // Arg(3) = Max Listeners // Arg(4) = Reported Listeners // Arg(5) = kbps (Steam Rate) // Arg(6) = Song Playing // llMessageLinked(LINK_SET,204000,llGetSubString(Arg(6),0,-15),"3"); } }
  3. Oz you should read this. arton thanks for the fix, it works, but what a hassle, I have to change a dozen different radios, tell the 25K that listen each month about the problem. I have to pdate the radios I give away on the marketplace. I can't get rid of the thousands of radios that were copy transfer that residents have, they will never go away.It will take me hours to do this! The many people that had old radios will never find out what is wrong and will just trash them and stop listening to SL musicians. The only reason I run the station is to promote live music in SL and to make SL a better place. Fox Reinsch
  4. GoSpeed you are welcome to use the script I posted above, the fix arton posted does work. I do wonder why this server change was made. Terrible that everything in SL that showed what was playing on a stream no longer works.
  5. I have 30,000 plus virtual radios that I have given out for free that have stopped working because of this. How do I fix 30,000 radios if I can't remotely update the scripts in them. It took me a few hours to find the cause here in this thread. Info and script as follows: This music URL hover text script has worked for almost 10 years in the over 30,000 free radios I have given out for IndieSpectrum Radio. It now returns a script error of: URL passed to llHTTPRequest contains a control character. It does this on any Shoutcast stream URL that I have tried, not just my own which is http://indiespectrum.com:9000 It does this on three different sims And it does it with both Firestorm and the stock LL viewer I can't see how all the shoutcast servers changed how they send the now playing string. Any help would be greatly appreciated as I run my station at a loss just to promote live music in SL. Thank you in advance, Fox Reinsch ================================== Script (with a different Internet station URL from mine): ================================== // leave music_url blank if set in object's description string music_url = "http://78.46.91.38:8000"; key HTTPRequest; string feed; string URL; string currSongTitle; string lastSongTitle; list feedList; default { state_entry() { llSetText(" ",<1,1,1>,1); llSetTimerEvent(5.0); if(music_url) { URL = music_url; } else { URL = llGetObjectDesc(); } } timer() { HTTPRequest=llHTTPRequest(URL + "/7.html HTTP/1.0\nUser-Agent: LSL Script (Mozilla Compatible)\n\n",[],""); } http_response(key k,integer status, list meta, string body) { if(k != HTTPRequest) return; feed = llGetSubString(body,llSubStringIndex(body, "<body>") + llStringLength("<body>"), llSubStringIndex(body,"</body>") - 1); feedList = llParseString2List(feed,[","],[]); currSongTitle = llList2String(feedList,6); integer length = llGetListLength(feedList); if(llList2String(feedList,7)) { integer a = 7; for(; a<length; ++a) { currSongTitle += ", " + llList2String(feedList,a); } } if (currSongTitle != lastSongTitle) { llSetText ("Now playing on IndieSpectrum Radio \n"+currSongTitle,<1,1,1>,0.75); lastSongTitle = currSongTitle; } } }
×
×
  • Create New...