| View previous topic :: View next topic |
| Author |
Message |
evotech Voice
Joined: 18 Feb 2011 Posts: 8
|
Posted: Sun Feb 20, 2011 5:10 pm Post subject: Check when online Streams are up |
|
|
I have tried gogling for a while and looking around, but what i need is a script that checks when online streams from owned.tv and justin.tv is up
public commands like !streams for instance that could list several streams and number of viewers for instance
Does anyone know of a script like this or has the ability to make one?
I dont quite know where to start |
|
| Back to top |
|
 |
vladdeh Voice
Joined: 23 Mar 2011 Posts: 33
|
Posted: Thu Oct 20, 2011 3:40 pm Post subject: |
|
|
| I'd also love this |
|
| Back to top |
|
 |
evotech Voice
Joined: 18 Feb 2011 Posts: 8
|
Posted: Fri Oct 21, 2011 8:02 am Post subject: |
|
|
I ended up making a perl script that retrieved info from a php API we made to show some info about a given stream using the different APIs of the different stream providers so my irc script only had to deal with one method of data retrieval.
it's a rather crude operation so id rather not share as it is not scalable, output is defined on a elseif basis
I do hope someone will pick up the idea and make something, i know there are purchasable versions of this on the net but this should really be here somehow
Short version:
| Code: |
if ( $count le 3 ) { # Finds streams from a series of files
for ($i = 0; $i <= $#filnvn; $i++) { #traverses streamfiles
open(FD, "<$filnvn[$i]") || die ("$0: $!"); #opens files
while(<FD>) { #while loop
if ($_ !~ m/-1/) { #checks viewer number, if -1 its offline.
$view=$_; #sets viewer number
if ($urls[$i] =~ m/streamname/) { #if it matches this stream, output link to stream
print "<<Streamname>> www.justin.tv/streamname ($view Viewers) "; $count=1; #found valid stream, exits
}
}
}
}
}
|
I did it like this because it was simple and i didn't have to display that many streams, id love to do it again but i dont have time. |
|
| Back to top |
|
 |
vladdeh Voice
Joined: 23 Mar 2011 Posts: 33
|
Posted: Fri Nov 25, 2011 2:44 am Post subject: |
|
|
No one wants to take it upon themselves to do this?  |
|
| Back to top |
|
 |
vladdeh Voice
Joined: 23 Mar 2011 Posts: 33
|
Posted: Sun Jan 01, 2012 3:35 pm Post subject: |
|
|
| bump |
|
| Back to top |
|
 |
Football Master
Joined: 26 Dec 2008 Posts: 205 Location: Quakenet, #Football
|
Posted: Tue Jan 03, 2012 8:11 am Post subject: |
|
|
Would love to see it happen _________________ Idling at #Football, Quakenet. |
|
| Back to top |
|
 |
vladdeh Voice
Joined: 23 Mar 2011 Posts: 33
|
Posted: Tue Jan 17, 2012 10:37 pm Post subject: |
|
|
| Looks like no one capable of coding it is interested or it might be too much work, oh well |
|
| Back to top |
|
 |
vladdeh Voice
Joined: 23 Mar 2011 Posts: 33
|
Posted: Thu Jan 26, 2012 7:28 pm Post subject: |
|
|
I'm willing to pay for this  |
|
| Back to top |
|
 |
|