Skip to content

Commit c310b6c

Browse files
authored
fix v5.streams.by_id request
Update to get reruns to work
1 parent e3f91f4 commit c310b6c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@
1919
# required scope: none
2020
@query
2121
def by_id(channel_id, stream_type=StreamType.LIVE):
22-
q = Qry('streams/{channel_id}', use_token=False)
23-
q.add_urlkw(keys.CHANNEL_ID, channel_id)
22+
q = Qry('streams', use_token=False)
23+
q.add_param(keys.CHANNEL, channel_id)
2424
q.add_param(keys.STREAM_TYPE, StreamType.validate(stream_type), StreamType.LIVE)
2525
return q
2626

0 commit comments

Comments
 (0)