plugin.video.twitch icon indicating copy to clipboard operation
plugin.video.twitch copied to clipboard

Twitch API v5 shutdown

Open apo86 opened this issue 4 years ago • 107 comments

So, I don't know if anyone has this on their radar, because I certainly didn't, but it looks like the addon is not going to work after end of the month unless some (many? most?) API calls are changed.

In fact it has already started with some scheduled downtimes that one or the other might have noticed Monday and today. As per Twitch's timeline those downtimes will increase until the final shutdown on the 28th: https://blog.twitch.tv/en/2021/07/15/legacy-twitch-api-v5-shutdown-details-and-timeline/

I can try to begin figuring out what needs to be changed, but honestly I don't know if I'm up to the task. And I also don't know if this even is a "simple" 1:1 migration to the new API or if more significant changes are needed because Twitch might've changed or even cut some functionality.

So uh, @anxdpanic if you are out there: Help, please?

apo86 avatar Feb 09 '22 20:02 apo86

It's absolutely on my radar, we will likely lose some functionality. But I will be trying to get some of the migration underway.

anxdpanic avatar Feb 09 '22 20:02 anxdpanic

That's good to hear, thanks! If there's anything I can do to help please let me know. I'm only lacking competence, not motivation ;)

apo86 avatar Feb 09 '22 21:02 apo86

@apo86 or anyone else looking to help, or follow, I'll be tracking the updates on https://github.com/anxdpanic/plugin.video.twitch/tree/helix_api

The changes to https://github.com/anxdpanic/script.module.python.twitch won't be breaking, so those can be tracked in master

anxdpanic avatar Feb 10 '22 01:02 anxdpanic

I'd estimate about half way there, it looks like we'll probably lose blacklist (at least until it can be revisited in the future), but may get to add the chat back using IRC. Will find out for sure as I get further.

anxdpanic avatar Feb 14 '22 18:02 anxdpanic

Looks like we’re screwed currently. Twitch v5 API is currently in a planned 4 hour shutdown block with many more planned rolling shutdowns until the final death day Feb 22.

neo-neo1 avatar Feb 14 '22 20:02 neo-neo1

That's why I'm trying to keep everyone posted here. Once something usable for testing is ready I will post everything needed as well.

anxdpanic avatar Feb 14 '22 20:02 anxdpanic

That's why I'm trying to keep everyone posted here. Once something usable for testing is ready I will post everything needed as well.

Thanks for your work. I hope to see Kodi 18 support continued since many still can not run Kodi 19. LibreELEC is a big one as they have yet to add Kodi 19 support to Rasp Pi 3B and many other popular boards. Thanks again.

neo-neo1 avatar Feb 14 '22 20:02 neo-neo1

No reason to change Kodi compatibility at this moment, so the helix update will be for the same versions of Kodi.

anxdpanic avatar Feb 14 '22 20:02 anxdpanic

I'd estimate about half way there, it looks like we'll probably lose blacklist (at least until it can be revisited in the future), but may get to add the chat back using IRC. Will find out for sure as I get further.

Sounds promising, thanks for your efforts!

apo86 avatar Feb 14 '22 20:02 apo86

I'd estimate about half way there, it looks like we'll probably lose blacklist (at least until it can be revisited in the future), but may get to add the chat back using IRC. Will find out for sure as I get further.

Thanks for all you do with this addon. I would be completely lost without it :)

kcs32787github avatar Feb 14 '22 20:02 kcs32787github

@anxdpanic Thank you for your continued efforts, it is much appreciated by a silent many, myself included.

Sprig

MrSprigster avatar Feb 14 '22 20:02 MrSprigster

For anyone currently experiencing add-on issues:

Twitch API v5 phased shutdown schedule:

February 7, 2022 – 1-hour shutdown starting at 11:00am PDT February 9, 2022 – 2-hour shutdown starting at 11:00am PDT February 14, 2022 – 4-hour shutdown starting at 11:00am PDT February 16, 2022 – 6-hour shutdown starting at 11:00am PDT February 22, 2022 – 24-hour shutdown starting at 11:00am PDT February 28, 2022 – v5 permanent shutdown

MrSprigster avatar Feb 14 '22 21:02 MrSprigster

@MrSprigster Thank you very much for posting the schedule. 11am pdt is 9pm for me here at gmt+2, which means that it stops working just when my day is over and I lay down and watch some twitch to relax. And I am probably sleeping when it comes back up. As it seems, next Tuesday, February 22nd, will be a tough day for me :P

@anxdpanic Can you please upload any development version of the addon in your "twitch development repository"? Alpha, beta, anything is welcome as long as it can play vods or live streams!

pitsi avatar Feb 15 '22 06:02 pitsi

@pitsi That's the plan, and I do hope to have something up before the outage tomorrow. It might only be the 'Following' section but should be usable.

anxdpanic avatar Feb 15 '22 14:02 anxdpanic

Oh, there is an outage planned for tomorrow. I forgot about it. I do not have a twitch account, thus I have no use for the "following" section. I just check games or streamers, which I keep as favorites inside kodi.

pitsi avatar Feb 15 '22 15:02 pitsi

Favorited streams should work in that case, I have followed stuff 'working' and didn't have to change the playback route, so anything favorite pointing to something playable should work once I have something up.

anxdpanic avatar Feb 15 '22 15:02 anxdpanic

Thank you for the clarification. What if the favorite does not link to something directly playable but to a list instead, e.g. the streams of a game or the vods of a streamer?

pitsi avatar Feb 15 '22 16:02 pitsi

That will be hit or miss, depends on how much I can get done today before I push the alpha 👍 edit: Some of those favorites will have to be recreated though, some routes have already changed due to the api changes.

anxdpanic avatar Feb 15 '22 16:02 anxdpanic

Thank you :) God I hate api changes (regardless of platform)!

pitsi avatar Feb 15 '22 16:02 pitsi

Not sure if I'll get back to it today, but I have it 90%+ working but completely broken on Kodi 19+. Hopefully later tonight or tomorrow morning I'll be able to get that working and push a version to the test repositories. Thanks for your patience 😄

anxdpanic avatar Feb 16 '22 01:02 anxdpanic