Skip to content

Commit 9e1023d

Browse files
authored
Merge pull request #72 from anxdpanic/dev
2.0.13
2 parents fbb6fbc + c06fd5a commit 9e1023d

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

addon.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
2-
<addon id="script.module.python.twitch" name="python-twitch for Kodi" version="2.0.12" provider-name="A Talented Community">
2+
<addon id="script.module.python.twitch" name="python-twitch for Kodi" version="2.0.13" provider-name="A Talented Community">
33
<requires>
44
<import addon="xbmc.python" version="2.20.0"/>
55
<import addon="script.module.six" version="1.11.0"/>
@@ -9,7 +9,7 @@
99
<extension point="xbmc.addon.metadata">
1010
<platform>all</platform>
1111
<news>
12-
[fix] clip usher
12+
[fix] stream language
1313
</news>
1414
<assets>
1515
<icon>icon.png</icon>

changelog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2.0.13
2+
[fix] stream language
3+
14
2.0.12
25
[fix] clip usher
36

resources/lib/twitch/api/parameters.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -195,10 +195,8 @@ class Language(_Parameter):
195195

196196
@classmethod
197197
def validate(cls, value):
198-
split_values = value.split(',')
199-
for val in split_values:
200-
if val not in cls._valid:
201-
raise ValueError(value)
198+
if value not in cls._valid:
199+
raise ValueError(value)
202200
return value
203201

204202

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def get_all(game=None, channel_ids=None, language=Language.ALL,
3333
q = Qry('streams', use_token=False)
3434
q.add_param(keys.GAME, game)
3535
q.add_param(keys.CHANNEL, channel_ids)
36-
q.add_param(keys.BROADCASTER_LANGUAGE, Language.validate(language), Language.ALL)
36+
q.add_param(keys.LANGUAGE, Language.validate(language), Language.ALL)
3737
q.add_param(keys.STREAM_TYPE, StreamType.validate(stream_type), StreamType.LIVE)
3838
platform = Platform.validate(platform)
3939
if platform == Platform.XBOX_ONE:

0 commit comments

Comments
 (0)