Guten Morgen zusammen...
Ich möchte eine Stream abfrage erstellen für einen twitch kanal das Programm und Code gehen...
nur hab ich kein plan wie ich das jetzt abrufe also Welcher link prüft ob der stream online ist is ja nicht so das ich einfach nen namen eingeben muss xDDD
Das Programm:
Jemand ne idee?!
Danke im vorraus
Ich möchte eine Stream abfrage erstellen für einen twitch kanal das Programm und Code gehen...
nur hab ich kein plan wie ich das jetzt abrufe also Welcher link prüft ob der stream online ist is ja nicht so das ich einfach nen namen eingeben muss xDDD
Das Programm:
VB.NET-Quellcode
- Private Sub nWatch_Tick(sender As Object, e As EventArgs) Handles NWatch.Tick
- If (isOnline("")) Then
- 'Online
- NotifyIcon1.Icon = SystemIcons.Exclamation
- NotifyIcon1.BalloonTipTitle = ""
- NotifyIcon1.BalloonTipText = ""
- NotifyIcon1.BalloonTipIcon = ToolTipIcon.Info
- NotifyIcon1.ShowBalloonTip(30000)
- Else
- 'Offline
- NotifyIcon1.Icon = SystemIcons.Exclamation
- NotifyIcon1.BalloonTipTitle = ""
- NotifyIcon1.BalloonTipText = ""
- NotifyIcon1.BalloonTipIcon = ToolTipIcon.Info 'icon wieder umändern
- NotifyIcon1.ShowBalloonTip(30000)
- End If
- End Sub
- Private Function isOnline(ByVal username As String) As Boolean
- Dim a As New System.Net.WebClient
- Dim b As String = a.DownloadString("LINK" & username)
- Return b <> "[]"
- End Function
Jemand ne idee?!
Danke im vorraus