MadMakz
/
Misc-Tools
Archived
1
0
Fork 0

Updated php/twitch/twitchstatus.php

This commit is contained in:
MadMakz 2014-02-16 17:42:58 +01:00
parent 9297f163ae
commit 9f187891c6
1 changed files with 7 additions and 3 deletions

View File

@ -42,14 +42,18 @@ if($stream["stream"] != null){
$txt = "<b>".$stream["stream"]["channel"]["status"]."</b><br>";
$txt .= "<small><b>".$account["display_name"]."</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>";
$boxart = "http://static-cdn.jtvnw.net/ttv-boxart/".$stream["stream"]["game"].".jpg";
}
else{
$txt = "<b>".$account["display_name"]."</b><br><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>";