![]() |
#1 |
Junior Member
Join Date: May 2008
Posts: 4
|
How to reverse engineer sid from 2.0 stream url?
Let's say that there is a stream server running with shoutcast 2.0.
It has 8 streams running, where for instance rock.aac is stream number 6. However, I do not know that. I only know the following URL: http://192.168.0.1:8000/rock.aac How can i find out, with knowing only the full stream url, that above url is stream #6 (sid=6)? Any help is appreciated. |
![]() |
![]() |
![]() |
#2 |
Join Date: Sep 2003
Posts: 27,873
|
if a custom streampath has been specified then if you're not the owner than you're not really meant to know the sid of the stream and if you are the owner then you should know what you've set to begin with.
though it's simple enough to find by accessing the /stats?sid=X page (where X is the sid) or using the /statistics page that will be in the next release (assuming public stats are enabled). or just looking at the different streams as shown on the root page of the v2 DNAS. though it then leads to the question of why you're wanting the sid of the stream from the custom streampath to begin with? -daz |
![]() |
![]() |
![]() |
#3 |
Junior Member
Join Date: May 2008
Posts: 4
|
Thanks for the quick reply
![]() I disagree that if you're not the stream owner, that you should not know the exact SID. After all the stats are publically available. The idea is to get the song information, by polling the /stats?sid=# That is why there is a need to get the sid from only knowing the full stream URL. I would have expected something like: /stats?streamlist, that would output: <SHOUTCASTSERVER> <STREAMCOUNT>2</STREAMCOUNT> <ACTIVESTREAMS>1</ACTIVESTREAMS> <STREAMPATH1>/test.aac</STREAMPATH1> <STREAMPATH2>/test2.aac</STREAMPATH2> </SHOUTCASTSERVER> If a stream owner does not want stats to be available, it can be switched off, right? Then the streamlist should not output too. Thanks again for any help concerning this. |
![]() |
![]() |
![]() |
#4 | |||
Join Date: Sep 2003
Posts: 27,873
|
Quote:
Quote:
Quote:
or maybe that's why they're still on the initial beta as it provided very little public information, heh. -daz |
|||
![]() |
![]() |
![]() |
#5 | |
Junior Member
Join Date: May 2008
Posts: 4
|
Quote:
Because that would solve getting the sid because then it would be linked to the streampath in one statspage.. just wishful thinking here ![]() No offense, but what good is it to have public information, that needs an exact identifier to be able to get to it, which is unknown because there is no direct relation to the streampath. The streampath+stream server url is of course likely to be used as the common stream url. Another solution would be just to make it possible to have stats?streampath=test.aac.. that would make it more logical and usable. Right now i would have to instruct my users to add the exact SID to fetch song information, which is well... not really wanted. Just the stream URL should be sufficient. Again, my thanks for your replies. Trying to do my best to support SC2, but do not see a way to do this at this time. |
|
![]() |
![]() |
![]() |
#6 | ||||
Join Date: Sep 2003
Posts: 27,873
|
Quote:
Quote:
Quote:
Quote:
-daz |
||||
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|