Old 10th February 2015, 19:22   #1
neves768
Junior Member
 
Join Date: Feb 2015
Posts: 7
How to get only stream name?
home.html?sid=Something here?
neves768 is offline   Reply With Quote
Old 10th February 2015, 21:13   #2
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,290
Quote:
Originally Posted by neves768 View Post
How to get only stream name?
home.html?sid=Something here?
as it states in the DOCUMENTATION that comes with DNAS, home.html redirects to the configured stream homepage (streamurl) - so, that wont do what you want no matter what you pass to that URL

there's no URI to get "only the stream name" as far as I can see in the DOCUMENTATION that comes with DNAS, but if you read the DOCUMENTATION, you might find something I missed, because I don't have a need for that ...

if the public pages are not disabled through the use of streamhidestats=all, you can use /stats?sid=# (where # is a NUMBER) to get XML info about the steam, including streamtitle (what you refer to as stream name I'm guessing) or /stats?sid=#&json=1 to get JSON version of the same data

if the public pages are disabled, you need to use authentication with /admin.cgi?mode=viewjson&page=1&sid=# (for JSON version) or /admin.cgi?mode=viewxml&page=1&sid=# (for XML version) or perhaps pass password=xxx to the previous examples - I'm not 100% clear on that, I think both may be valid, but it's all in the DOCUMENTATION THAT CAME WITH DNAS - so, I'm only regurgitating what I READ in that DOCUMENTATION anyway

in summary, as DrO said, "look at the documentation" - preferably read it too

"If you don't like DNAS, write your own damn system"

So I did
jaromanda is offline   Reply With Quote
Old 24th February 2015, 18:02   #3
DrO
 
Join Date: Sep 2003
Posts: 27,873
Quote:
Originally Posted by jaromanda View Post
if the public pages are disabled...
for disabled public pages, if you provide a valid password via the 'pass' parameter then you can still access the xml and json versions (so monitoring tools can still work even if you don't want other broadcasters snooping on your stats...).
DrO 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