Resource icon

[Ice] LiveStreams 1.3

No permission to download

Lemminator

Well-known member
I figured out how to fix it,

In /library/Ice/EmbedStreams/Model/Streams.php

Replace line 36 to 46 with this:

Code:
case 0:
                    $url = 'https://api.twitch.tv/kraken/streams/'.$stream['stream_username'];
                    $content = file_get_contents($url);
                    $json = json_decode($content, true);
                        if($json['stream']){
                        $this->_getDb()->update("xf_ice_livestreams", array('live'=>1), "`stream_id`=".$stream['stream_id']);
                        $online++;
                        }else{
                        $this->_getDb()->update("xf_ice_livestreams", array('live'=>0), "`stream_id`=".$stream['stream_id']);
                        }
                    break;
thanks !!!!!!!!!!that will help
 

Nark0t1k

Member
i don't see streaming videos from twitch . he somebody the same problems ?

Same here start stream 15 min ago and nothing showing in livestram part :/

Code:
ErrorException: file_get_contents(http://api.justin.tv/api/stream/list.json?channel=Nark0t1k): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found - library/Ice/EmbedStreams/Model/Streams.php:38
I got this error when trying to setup a new twitch streamer


Edit:
Urf reallise this ressouces wasn't anymore supported :(

Edit 2:

Error message was solved with


I figured out how to fix it,

In /library/Ice/EmbedStreams/Model/Streams.php

Replace line 36 to 46 with this:

Code:
case 0:
                    $url = 'https://api.twitch.tv/kraken/streams/'.$stream['stream_username'];
                    $content = file_get_contents($url);
                    $json = json_decode($content, true);
                        if($json['stream']){
                        $this->_getDb()->update("xf_ice_livestreams", array('live'=>1), "`stream_id`=".$stream['stream_id']);
                        $online++;
                        }else{
                        $this->_getDb()->update("xf_ice_livestreams", array('live'=>0), "`stream_id`=".$stream['stream_id']);
                        }
                    break;


And now everything work well !
 
Last edited:

Rotary

Member
Is this plugin working with 1.5?
I install it correctly, edit the "Streams.php" but the livestream isnt showing, but the twitch user is online.
 
Top