Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void checkOnline()
- {
- XDocument doc = XDocument.Load("http://api.own3d.tv/liveCheck.php?live_id=" + OTVid, LoadOptions.PreserveWhitespace);
- int count = (from e in doc.Descendants("isLive") where (bool) e select e).Count();
- if (OTVstreamOnline) //can this be somehow changed to like, if count = 1, then OTVonlineStreams++; (how would I do this?)
- {
- OTVonlineStreams++;
- }
- else
- {
- OTVonlineStreams--; //if it doesn't return 1 (returns 0), then OTVonlineStreams--;
- }
- OTVAnnounce();
- Console.WriteLine(OTVnick + " online = " + count);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement