Jump to content

Radio Code


JOhnson

Recommended Posts

what you have to edit is the IP / PORT / and Radio ID

 

sockwrite -n $sockname POST /chat/fr2.php?ip=109.169.47.158&port=9522&ip1=&ip2=&ip3=&show=&b=1&radioid=1177905 HTTP/1.0

if you edit those in the above and in the sockopen and host it should work..

 

you can get the info just by viewing the source of your radio page.

 

:lmaojump: thank you for your reply .. at the moment the radio is running ok so no need to change the server ... Question ? where do I get the Radio ID ? as when I open my "Streaming Details" it only gives me my ip= and port= so iv no idea where to look for that Radio ID ... as always thank you for your help and reply :D

Link to comment
Share on other sites

  • Replies 44
  • Created
  • Last Reply

Top Posters In This Topic

you view the page in your browser and right click and view page source so you can see the html code.. then you search

 

:lmaojump: ok as always thank you for your help and also thank you for the code and I worked out where to go and what to do :lolwave: cheers err0r :D

Link to comment
Share on other sites

  • 1 year later...

err0r, If you see this. I could use some help on the HTTP:/1 I can't find it in the source code http://www.cosyclanradio.com And to be totally inclusive, there is an Audio Realm and Shoutcast page for this one stream, I've looked on all View Source Pages and am still missing something.

Edited by TacticalThunder
Link to comment
Share on other sites

This should work to get song playing

menu channel {
  Radio Test
  .Set Channel: { set %radiotest.room $$?="Full Channel Name" }
  .$iif($timer(.radiotest),$style(2)) Turn On: { radiotest | .timer.radiotest 0 10 radiotest | echo -a radiotest msg on }
  .$iif(!$timer(.radiotest),$style(2)) Turn Off: { unset %radiotest.song | .timer.radiotest off | echo -a radiotest msg off }
}
alias radiotest { sockclose radiotest | sockopen radiotest 96.31.83.87 8037 }
on *:sockopen:radiotest: { 
  sockwrite -n $sockname GET /7.html HTTP/1.1
  sockwrite -n $sockname User-Agent: SHOUTcast Song Status (Mozilla  Compatible)
  sockwrite -n $sockname Host: $+(96.31.83.87,:,8037)
  sockwrite -n $sockname $crlf
}
on *:sockread:radiotest: {
  if ($sockerr > 0) return
  var %radiotest | sockread -fn %radiotest
  if ($regex(%radiotest,/<body>(.*)<\/body>/)) { 

    set %radiotest.song $gettok($regml(1),7-,44)
    if (%radiotest.song != %radiotest.lastsong) {
      set %radiotest.lastsong %radiotest.song
      msg %radiotest.room Now playing on CosyClanRadio.com - %radiotest.song

    } 
  }
}

Link to comment
Share on other sites

  • Site Moderator

Ok if your using Buzzen it's %#roomname if its irc its #roomname both working for me bro!! also look into the variables of the script and see if you have this in it %radiotest.room %#AFriendlyChat if it is give it a few mins to play with new song!!

Edited by chain
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...