Skip to content

Commit 2796779

Browse files
committed
omit oauth token for collections 'by_id' queries and 'get_collections' queries
1 parent 0acb4c5 commit 2796779

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

addon.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
<extension point="xbmc.addon.metadata">
1010
<platform>all</platform>
1111
<news>
12-
[fix/upd] offset, limit to games '_get_followed' queries
13-
[fix] omit oauth token for videos 'by_id' queries
12+
[fix] omit oauth token for collections 'by_id' queries
13+
[fix] omit oauth token for collections 'get_collections' queries
1414
</news>
1515
<assets>
1616
<icon>icon.png</icon>

changelog.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.0.2
2+
[fix] omit oauth token for collections 'by_id' queries
3+
[fix] omit oauth token for collections 'get_collections' queries
4+
15
1.0.1
26
[fix/upd] offset, limit to games _get_followed
37
[fix] omit oauth token for videos by_id

resources/lib/twitch/api/v5/collections.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def get_metadata(collection_id):
1818
# required scope: none
1919
@query
2020
def by_id(collection_id, include_all=Boolean.FALSE):
21-
q = Qry('collections/{collection_id}/items')
21+
q = Qry('collections/{collection_id}/items', use_token=False)
2222
q.add_urlkw(keys.COLLECTION_ID, collection_id)
2323
q.add_param(keys.INCLUDE_ALL_ITEMS, Boolean.validate(include_all), Boolean.FALSE)
2424
return q
@@ -27,7 +27,7 @@ def by_id(collection_id, include_all=Boolean.FALSE):
2727
# required scope: none
2828
@query
2929
def get_collections(channel_id, limit=10, cursor='MA==', containing_item=None):
30-
q = Qry('channels/{channel_id}/collections')
30+
q = Qry('channels/{channel_id}/collections', use_token=False)
3131
q.add_urlkw(keys.CHANNEL_ID, channel_id)
3232
q.add_param(keys.LIMIT, limit, 10)
3333
q.add_param(keys.CURSOR, Cursor.validate(cursor), 'MA==')

0 commit comments

Comments
 (0)