Updated php/twitch/twitchstatus.php
This commit is contained in:
parent
9297f163ae
commit
9f187891c6
|
@ -42,14 +42,18 @@ if($stream["stream"] != null){
|
||||||
$txt = "<b>".$stream["stream"]["channel"]["status"]."</b><br>";
|
$txt = "<b>".$stream["stream"]["channel"]["status"]."</b><br>";
|
||||||
$txt .= "<small><b>".$account["display_name"]."</b><br><br>";
|
$txt .= "<small><b>".$account["display_name"]."</b><br><br>";
|
||||||
$txt .= "<b>Live!</b><br><br>";
|
$txt .= "<b>Live!</b><br><br>";
|
||||||
$txt .= "<b>Playing:</b> ".$stream["stream"]["game"]."<br><br>";
|
if(!empty($stream["stream"]["game"])){
|
||||||
|
$txt .= "<b>Playing:</b> ".$stream["stream"]["game"]."<br><br>";
|
||||||
|
$boxart = "http://static-cdn.jtvnw.net/ttv-boxart/".$stream["stream"]["game"].".jpg";
|
||||||
|
}else{
|
||||||
|
$boxart = "http://i.imgur.com/bwqCxgg.jpg";
|
||||||
|
}
|
||||||
$txt .= "<b>Viewers:</b> ".$stream["stream"]["viewers"]."</small><br>";
|
$txt .= "<b>Viewers:</b> ".$stream["stream"]["viewers"]."</small><br>";
|
||||||
$boxart = "http://static-cdn.jtvnw.net/ttv-boxart/".$stream["stream"]["game"].".jpg";
|
|
||||||
}
|
}
|
||||||
else{
|
else{
|
||||||
$txt = "<b>".$account["display_name"]."</b><br><br>";
|
$txt = "<b>".$account["display_name"]."</b><br><br>";
|
||||||
$txt .= "<small><b>Offline.</b></small><br>";
|
$txt .= "<small><b>Offline.</b></small><br>";
|
||||||
$boxart = "http://img7.imageshack.us/img7/9652/offlineeu.jpg";
|
$boxart = "http://i.imgur.com/TqKeUSn.jpg";
|
||||||
}
|
}
|
||||||
$txt .= "<br><a href=\"".$account["url"]."\" target=\"_blank\"><b>Go to Channel</b></a>";
|
$txt .= "<br><a href=\"".$account["url"]."\" target=\"_blank\"><b>Go to Channel</b></a>";
|
||||||
|
|
||||||
|
|
Reference in New Issue