egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Check when online Streams are up

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
evotech
Voice


Joined: 18 Feb 2011
Posts: 8

PostPosted: Sun Feb 20, 2011 5:10 pm    Post subject: Check when online Streams are up Reply with quote

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
View user's profile Send private message
vladdeh
Voice


Joined: 23 Mar 2011
Posts: 33

PostPosted: Thu Oct 20, 2011 3:40 pm    Post subject: Reply with quote

I'd also love this
Back to top
View user's profile Send private message
evotech
Voice


Joined: 18 Feb 2011
Posts: 8

PostPosted: Fri Oct 21, 2011 8:02 am    Post subject: Reply with quote

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 Razz

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
View user's profile Send private message
vladdeh
Voice


Joined: 23 Mar 2011
Posts: 33

PostPosted: Fri Nov 25, 2011 2:44 am    Post subject: Reply with quote

No one wants to take it upon themselves to do this? Sad
Back to top
View user's profile Send private message
vladdeh
Voice


Joined: 23 Mar 2011
Posts: 33

PostPosted: Sun Jan 01, 2012 3:35 pm    Post subject: Reply with quote

bump
Back to top
View user's profile Send private message
Football
Master


Joined: 26 Dec 2008
Posts: 205
Location: Quakenet, #Football

PostPosted: Tue Jan 03, 2012 8:11 am    Post subject: Reply with quote

Would love to see it happen
_________________
Idling at #Football, Quakenet.
Back to top
View user's profile Send private message
vladdeh
Voice


Joined: 23 Mar 2011
Posts: 33

PostPosted: Tue Jan 17, 2012 10:37 pm    Post subject: Reply with quote

Looks like no one capable of coding it is interested or it might be too much work, oh well
Back to top
View user's profile Send private message
vladdeh
Voice


Joined: 23 Mar 2011
Posts: 33

PostPosted: Thu Jan 26, 2012 7:28 pm    Post subject: Reply with quote

I'm willing to pay for this Smile
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber