Bug #2401

Twitch plugin broken due to API changes

Added by Jordan Scango almost 6 years ago. Updated almost 6 years ago.

Status:FixedStart date:12/12/2014
Priority:NormalDue date:
Assignee:Andreas Smas% Done:

100%

Category:Plugins
Target version:-
Found in version:4.7.529 Platform:Linux

Description

I don't really know what's changed or why, but all streams appear 404'd.

If it helps, the app "Livestreamer" has thier fix here https://github.com/chrippa/livestreamer/commit/bbc6d0e7c1a8b6bf053345e88366cae115baa2d3

twitchtv.zip - Updated for Twitch API changes (8.05 KB) Jordan Scango, 12/18/2014 12:50 AM

History

#1 Updated by Adam Selene almost 6 years ago

The following diff should work, though I am having a bitch of a time getting a test done from within showtime itself.

--- twitchtv.js    Wed Dec 31 19:00:00 1969
+++ twitchtv.js    Fri Dec 12 22:27:56 2014
@@ -432,7 +432,7 @@
         var channelsig = readstream['sig'];

         // Define Stream Playlist URL
-        var twitchurl = 'http://usher.twitch.tv/select/' + name + '.m3u8?nauthsig=' + channelsig + '&nauth=' + channeltoken + 
+        var twitchurl = 'http://usher.twitch.tv/api/channel/hls/' + name + '.m3u8?sig=' + channelsig + '&token=' + channeltoken + 
             '&allow_source=true';

         // Download Multiple Quality Stream Playlist

#2 Updated by Adam Selene almost 6 years ago

ok tested and working with the diff above.

#3 Updated by Jordan Scango almost 6 years ago

Yup working fine here too.

#4 Updated by Jerome Reuther almost 6 years ago

Nice, what's the easiest way to test this on my ps3? I would love to update the Plugin there. Also how long will it take till an update version will be pulled?

#5 Updated by Jordan Scango almost 6 years ago

Throw this into /dev_hdd0/game/HTSS00003/USRDIR/settings/installedplugins , replacing the old twitchtv.zip.

You could also just pull that file and replace that one line in twitch.js yourself.

The original developer isn't working on Showtime plugins anymore so I don't know if he'll ever update it.

#6 Updated by Leonid Protasov almost 6 years ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

Fixed in v2.0.

Also available in: Atom PDF