Twitch Streamers Block
Select messages from # through # Forum FAQ
[/[Print]\]

HeadShot Extreme -> Nuke Blocks / Modules Support

#1: No icon Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sat Jan 18, 2020 2:16 pm
    —
I know the Twitch Streamers block is no longer working. Looks like they updated their API once again and the block would need probably a full rewrite. I don't have time to do that right now but I will get to it when I do have time.

UPDATE:

Fix found here:
Please login to see this link
Get registered or Log in
Last edited by coRpSE on Thu Jun 18, 2020 7:04 pm; edited 1 time in total

#2: No icon Re: Twitch Streamers Block Author: fire PostPosted: Sat Feb 01, 2020 9:06 am
    —
Waiting patiently.....lachen…...ok is it ready yet?.....How about now?.....ready yet?......J/k CoRpSe, I know you are busy, just stopped by to see if anything new.....lachen

#3: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sat Feb 01, 2020 2:26 pm
    —
:P

Nothing new on this. Still busy working on the Lotto module, which Mega is testing by giving away free games each month:
Please login to see this link
Get registered or Log in

#4: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Mon Feb 03, 2020 1:16 pm
    —
Update:

Okay, it looks as if the API was not being received. I believe it was something to do with my host. I do know I will need to update the API eventually.

#5: No icon Re: Twitch Streamers Block Author: fire PostPosted: Tue Feb 04, 2020 8:01 am
    —
A change by your webhost was blocking it? Is it something I have to contact my webhost about to get it working again CoRpSe?

#6: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Wed Feb 05, 2020 11:27 am
    —
— fire wrote
A change by your webhost was blocking it? Is it something I have to contact my webhost about to get it working again CoRpSe?

any error code with the one on your site?
Also, the version you're using, did you put in the user names or the user id's?
I only ask that because I did have an update not so long ago with that change because V3 of the API is no longer and I had to update to V5. The big difference was using twitch ID's instead of the Twitch names, and that's why I have in the menu on the left, just above the logout, the Twitch ID Finder.

#7: No icon Re: Twitch Streamers Block Author: fire PostPosted: Wed Feb 05, 2020 8:00 pm
    —
twitch ID I do believe. Have not checked error logs for any errors, will do that as soon as I get home.

#8: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Wed Feb 05, 2020 8:38 pm
    —
Okay, Yeah, double check to see if there are any logs in either the root of your site, or in the error log in the backend of your site. Also, if you view the script, it may also show an error on your site where the block should be.

#9: No icon Re: Twitch Streamers Block Author: fire PostPosted: Thu Feb 06, 2020 6:58 am
    —
The block appears to show correctly and I do not see any errors in the error log pertaining to this block.

I also double checked the twitch ID that is entered in the block and it is correct.

#10: No icon Re: Twitch Streamers Block Author: fire PostPosted: Thu Feb 06, 2020 7:36 am
    —
Disregard and thanks for the help. It is working now for some odd reason, but thankful lol

#11: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Fri Feb 07, 2020 12:19 pm
    —
Good to hear I guess. Would be nice to know why it wasn't working.

#12: No icon Re: Twitch Streamers Block Author: fire PostPosted: Sat Feb 08, 2020 7:37 am
    —
I reloaded the block with info re-entered, and no difference. I re-entered info into Twitch account and no difference. Even went as far as to delete and re-install steaming program I use. no difference. Then it started to work..... hrm Just glad it is working again.

#13: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Sun Feb 09, 2020 10:54 am
    —
Yeah, that's strange. Could have been something cached. Who knows.

#14: No icon Re: Twitch Streamers Block Author: fire PostPosted: Sat Feb 22, 2020 2:34 pm
    —
It is back to not working again....weinen  On Twitch it shows the stream running but the block does not change from offline to online. I am heading out of state, but will have internet access to continue trying to figure this out when I can. Just a heads up

#15: No icon Re: Twitch Streamers Block Author: PatPgtips PostPosted: Thu Feb 27, 2020 9:30 am
    —
not working for me either shows last time streamer was live but doesnt show they are live on image

#16: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Thu Feb 27, 2020 9:23 pm
    —
Yeah, it needs a rewrite. Twitches API I believe is being changed. Unfortunately, their documentation sucks on this so it will take me a little while to get to it.

#17: No icon Re: Twitch Streamers Block Author: fire PostPosted: Fri Feb 28, 2020 6:25 am
    —
Thanks for the response CoRpSE. I am surprised they don't supply iframe code or html code themselves to display on websites. Seems like that would help with advertising for them like gametracker does. Appreciate any help you could give on this one!

#18: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Fri Feb 28, 2020 11:44 am
    —
Iframe wouldn't help with this. API, are basically a text file that gets updated constantly, and we call upon that and look for specific sections of that code to show, then from there we design the look and what will happen with that value. The thing is, when I built this, I was using V2 of the API, then they shut that down last year and forced everyone to upgrade to V5, but they said that was shutting down soon for a different version.

Now, that the links have changed, I need to figure out the new JSON URL's for the various information for the system as-well as the new calls they may be.

#19: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Thu Jun 18, 2020 7:03 pm
    —
Okay, here is a fix for those of you that have the system but it's not working anymore.
It looks like I may not have to upgrade to the new helix API just yet, they just changed a bit of the krakin v5 code.

Open: public_html/includes/blocks/block-twitch_streamers.php

Find: (Around line 46)

PHP:  [ Select all ]

//Let's see if the stream is live
 
$stream = ($json['_total'] == 0) ? '' 'true'

 


Replace all that with:

PHP:  [ Select all ]

    //Let's see if the stream is live
    
$liveornot $json['streams'][0]['broadcast_platform'];
    
$stream = ($liveornot != "live") ? '' 'true'

 

Save and check.

#20: No icon Re: Twitch Streamers Block Author: PatPgtips PostPosted: Fri Jun 19, 2020 4:48 am
    —
thanks corpse that works great

very much appreciated

#21: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Fri Jun 19, 2020 10:40 am
    —
No problem.

#22: No icon Re: Twitch Streamers Block Author: PatPgtips PostPosted: Mon Oct 18, 2021 6:53 am
    —
hi corpse i know this is an old post but after twitch had there data breached i now am getting this error

Last Live: Not Live! Not Retrievable.

Expand

RustyDT is live when i grabbed this screenshot and is not also showing live but it is grabbing the streamers images

any chance you can take a look when you have time

#23: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Mon Oct 18, 2021 7:46 pm
    —
— PatPgtips wrote
hi corpse i know this is an old post but after twitch had there data breached i now am getting this error

Last Live: Not Live! Not Retrievable.

RustyDT is live when i grabbed this screenshot and is not also showing live but it is grabbing the streamers images

any chance you can take a look when you have time


I looked into it. It's not just mine, but also Lonestars. But upon further investigation, it looks like it will need to be updated to the latest API.
The downfall with going to the new API is it will make it a bit harder for people to install this script onto their site since now, Twitch is going to force everyone to register the app on their site. I will talk with Lonestar about this and see what he wants to do, since I am no longer going to support mine in favor of his script.

#24: No icon Re: Twitch Streamers Block Author: Lonestar PostPosted: Tue Oct 19, 2021 8:10 am
    —
I will update my Twitch module/block to use the new API, I will have to slightly modify the script you sent me corpse, So I can allow users to input the clientid & secret via the admin area.

I have been meaning to get the block released, but always seem to get side tracked, I will work on changing over the API links and get this module/block released.

#25: No icon Re: Twitch Streamers Block Author: PatPgtips PostPosted: Tue Oct 19, 2021 11:57 am
    —
no problem guys thanks for the info

#26: No icon Re: Twitch Streamers Block Author: [HSX]coRpSELocation: Back of your mind!!! PostPosted: Tue Oct 19, 2021 5:41 pm
    —
Lonestar, Once you get that done, I will make a video tutorial on how to register an app, so they can get a client ID and secret key. It's easy, but I know some may get confused.

#27: No icon Re: Twitch Streamers Block Author: Lonestar PostPosted: Wed Oct 20, 2021 6:23 am
    —
Okey Dokey lachen



HeadShot Extreme -> Nuke Blocks / Modules Support


output generated using printer-friendly topic mod. All times are GMT - 7 Hours

Page 1 of 1