Hello all,
I need some help with the length count in the past broadcast .
When I wanne see the length from an past broadcast using the API and getting for me an strangs number back .
See here https://api.twitch.tv/kraken/videos/a599553123
"length":101,"
But the when I go the video itself see here
Video Past Broadcast Link
1.41 so I really dont know how to get the right time back I am using it in my php code see
$plugin_title = "<img src='plugins/twitch/img/online0.gif'/> $channelName is not streaming at the moment";
$json = json_decode(file_get_contents("https://api.twitch.tv/kraken/channels/uberfoolhd/videos?broadcasts=true&limit=10"));
foreach($json->videos as $video) {
$plugin_body .= "<div class=\"block\">";
$plugin_body .= "<a href=\" $video->url \"><img src=" . $video->preview . " height=\"320\" width=\"320\"></a>";
$plugin_body .= " $video->title ";
$plugin_body .= " $video->time ";
$plugin_body .= "</div>";
Thanks for the help