Old 5th January 2016, 19:07   #1
dannidj
Senior Member
 
dannidj's Avatar
 
Join Date: Jul 2004
Posts: 384
Currect Listiners

Dose someone have a woorking Curret Listiners PHP Script for Shoutcast 1.9.8?
dannidj is offline   Reply With Quote
Old 10th February 2017, 08:44   #2
sqgl
Senior Member
 
sqgl's Avatar
 
Join Date: Sep 2008
Location: Australia
Posts: 113
Don't know about Python but in Linux i am executing the following within a shell script:

code:
export listener_count_single_digit=`lynx -dump http://replayscape.serverroom.us:4286 | grep "listeners" | sed 's/.*\([0-9]\) of 50 listeners.*/\1/'`
export listener_count_double_digit=`lynx -dump http://replayscape.serverroom.us:4286 | grep "listeners" | sed 's/.*\([0-9][0-9]\) of 50 listeners.*/\1/'`



Just now I had to brush up on sed syntax to understand the trailing \1 at the end of each of those two lines.

Remixing listener requests of ambient tracks live http://RePlayScape.com
sqgl is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > SHOUTcast > SHOUTcast Site Design

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