Skip to content

Commit

Permalink
Show error message and suggestion when Twitch add-on version 2.0 is d…
Browse files Browse the repository at this point in the history
…etected.
  • Loading branch information
khloke committed Jan 1, 2018
1 parent 07f6d8f commit 4a94aae
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions js/modules.js
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,16 @@ var TwitchTvModule = {
callback('plugin://plugin.video.twitch/?mode=play&video_id=' + videoId);
}

} else if (versionNumber === 2.0) {
if (liveVideo) {
alert("Twitch live video support for Play-to-Kodi is currently broken with Twitch on Kodi " +
"version 2.0. Please update Twitch on Kodi to version 2.1.0 when it becomes available to " +
"regain this feature.");
callback('plugin://plugin.video.twitch/?mode=play&channel_name=broken_url');
} else {
callback('plugin://plugin.video.twitch/?mode=play&video_id=' + videoId);
}

} else {
if (liveVideo) {
pluginPath = 'plugin://plugin.video.twitch/playLive/' + videoId + '/';
Expand Down

0 comments on commit 4a94aae

Please sign in to comment.