| jaromanda |
10th February 2015 21:13 |
Quote:
Originally Posted by neves768
(Post 3019027)
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
|