Skip to content

Commit 5189a8d

Browse files
committed
clean up
1 parent a85a2ab commit 5189a8d

3 files changed

Lines changed: 2 additions & 28 deletions

File tree

addon.xml

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,6 @@
1010
<platform>all</platform>
1111
<news>
1212
- initial release
13-
- use script.module.requests
14-
- remove default client_id
15-
- add oauth token support
16-
- add authorization, client id headers to all api calls
17-
- update api.twitch to use https
18-
- update usher to allow_source
19-
- videos.by_channel from broadcasts bool to broadcast_type: 'archive', 'highlight', 'upload'
20-
- update m3u_pattern
21-
- add initial v5 (wip)
22-
- add support for additional methods in queries (PUT/DELETE/POST)
23-
- v5 add communities, update follow/unfollow/blocks
24-
- add basics for implicit oauth2
25-
- update usher base url
2613
</news>
2714
<assets>
2815
<icon>icon.png</icon>

changelog.txt

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,2 @@
11
1.0.0
22
- initial release
3-
- use script.module.requests
4-
- remove default client_id
5-
- add oauth token support
6-
- add authorization, client id headers to all api calls
7-
- update api.twitch to use https
8-
- update usher to allow_source
9-
- videos.by_channel from broadcasts bool to broadcast_type: 'archive', 'highlight', 'upload'
10-
- update m3u_pattern
11-
- add initial v5 (wip)
12-
- add support for additional methods in queries (PUT/DELETE/POST)
13-
- v5 add communities, update follow/unfollow/blocks
14-
- add basics for implicit oauth2
15-
- update usher base url

resources/lib/twitch/queries.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def __init__(self, path, headers={}, data={}, method=methods.GET):
106106

107107
class HiddenApiQuery(JsonQuery):
108108
def __init__(self, path, headers={}, data={}, method=methods.GET):
109-
headers.setdefault('Client-Id', CLIENT_ID)
109+
headers.setdefault('Client-ID', CLIENT_ID)
110110
if OAUTH_TOKEN:
111111
headers.setdefault('Authorization', 'OAuth {access_token}'.format(access_token=OAUTH_TOKEN))
112112
super(HiddenApiQuery, self).__init__(_hidden_baseurl, headers, data, method)
@@ -115,7 +115,7 @@ def __init__(self, path, headers={}, data={}, method=methods.GET):
115115

116116
class UsherQuery(DownloadQuery):
117117
def __init__(self, path, headers={}, data={}, method=methods.GET):
118-
headers.setdefault('Client-Id', CLIENT_ID)
118+
headers.setdefault('Client-ID', CLIENT_ID)
119119
if OAUTH_TOKEN:
120120
headers.setdefault('Authorization', 'OAuth {access_token}'.format(access_token=OAUTH_TOKEN))
121121
super(UsherQuery, self).__init__(_usher_baseurl, headers, data, method)

0 commit comments

Comments
 (0)