Old 31st January 2012, 22:04   #1
r.wilburn
Junior Member
 
Join Date: Jan 2012
Posts: 2
UID in admin page 3 seems incorrect

I have been working on a anti-ripping script but I have hit a bit of a snag. When I call a URL to the Shoutcast DNAS to kick an offensive listener nothing happens. I am passing the UID from admin page 3 for a listerner but I have noticed that it doesn't match the value for the kickdst variable in the kick URL on the listerner and stats page. The below are examples from the live server (sanitized of course).

Kick URL on listener and stats:
http://192.xxx.x.x:xxxx/admin.cgi?si...ckdst&kickdst=7899604

XML from admin page 3 for the same listener.
code:

<LISTENER>
<HOSTNAME>xxx.xxx.xxx.xxx</HOSTNAME>
<USERAGENT>NSPlayer/12.00.7601.17514 WMFSDK/12.00.7601.17514</USERAGENT>
<CONNECTTIME>16037</CONNECTTIME>
<UID>007889D4</UID>
</LISTENER>


I am calling the same url as the one from the listener and stats page to kick a listener but the kickdst URL value is not matching the UID value in the XML . I really need to get this script working, any help would be appreciated.

Rick
Administrator
Joey's Dance Radio
r.wilburn is offline   Reply With Quote
Old 31st January 2012, 22:14   #2
DrO
 
Join Date: Sep 2003
Posts: 27,873
it's a bug in the current public build of the v2 DNAS due to one part outputting the UID as a hexadecimal string (without 0x prefix) and the other returning a decimal value.

it's fixed internally, but as a work around until a new build is released (no eta), you could convert the UID from the xml to decimal and then use that in the kick command.

and i've changed the yellow text to orange since it was tricky to read it without copy+pasting (unless it's just my eye sight giving up on me).

-daz
DrO is offline   Reply With Quote
Old 1st February 2012, 19:31   #3
r.wilburn
Junior Member
 
Join Date: Jan 2012
Posts: 2
I thought that looked like hex. Your help is very much appreciated.

Rick
Administrator
Joey's Dance Radio
r.wilburn is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump