Skip to content

Commit

Permalink
Merge pull request #464 from anxdpanic/pr-1
Browse files Browse the repository at this point in the history
2.4.7
  • Loading branch information
anxdpanic committed Nov 18, 2019
2 parents 7eac76a + 5d562b7 commit 6240e80
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
9 changes: 3 additions & 6 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version='1.0' encoding='UTF-8' standalone='yes'?>
<addon id='plugin.video.twitch' version='2.4.6' name='Twitch' provider-name='A Talented Community'>
<addon id='plugin.video.twitch' version='2.4.7' name='Twitch' provider-name='A Talented Community'>
<requires>
<import addon='xbmc.python' version='2.20.0'/>
<import addon='script.module.six' version='1.11.0'/>
<import addon='script.module.python.twitch' version='2.0.9'/>
<import addon='script.module.python.twitch' version='2.0.10'/>
<import addon='script.module.requests' version='2.9.1'/>
</requires>
<extension point='xbmc.python.pluginsource' library='resources/lib/addon_runner.py'>
Expand All @@ -13,10 +13,7 @@
<extension point='xbmc.addon.metadata'>
<platform>all</platform>
<news>
[add] Settings - Login - Private API Credentials
[fix] basic playback, set default Private API Credentials - Client ID
[fix] oauth short link generation w/ python 3
[rem] Remove deprecated scope chat_login
[fix] remaining private api calls ie. following games, toggle following games
</news>
<assets>
<icon>icon.png</icon>
Expand Down
3 changes: 3 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
2.4.7
[fix] remaining private api calls ie. following games, toggle following games

2.4.6
[add] Settings - Login - Private API Credentials
[fix] basic playback, set default Private API Credentials - Client ID
Expand Down
8 changes: 4 additions & 4 deletions resources/lib/twitch_addon/addon/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,19 +221,19 @@ def unfollow(self, channel_id):
@api_error_handler
def check_follow_game(self, game):
username = self.get_username()
results = self.api.games._check_follows(username=username, name=game)
results = self.api.games._check_follows(username=username, name=game, headers=self.get_private_credential_headers())
return self.return_boolean(results)

@api_error_handler
def follow_game(self, game):
username = self.get_username()
results = self.api.games._follow(username=username, name=game)
results = self.api.games._follow(username=username, name=game, headers=self.get_private_credential_headers())
return self.error_check(results)

@api_error_handler
def unfollow_game(self, game):
username = self.get_username()
results = self.api.games._unfollow(username=username, name=game)
results = self.api.games._unfollow(username=username, name=game, headers=self.get_private_credential_headers())
return self.error_check(results)

@api_error_handler
Expand Down Expand Up @@ -299,7 +299,7 @@ def get_streams_by_channels(self, names, offset, limit):
@api_error_handler
@cache.cache_method(cache_limit=cache.limit)
def get_followed_games(self, name, offset, limit):
results = self.api.games._get_followed(username=name, limit=limit, offset=offset)
results = self.api.games._get_followed(username=name, limit=limit, offset=offset, headers=self.get_private_credential_headers())
return self.error_check(results)

@api_error_handler
Expand Down

0 comments on commit 6240e80

Please sign in to comment.