From 0dcb2eb299d5f32422efe2e4c4106092ff26681c Mon Sep 17 00:00:00 2001 From: apo86 <57818762+apo86@users.noreply.github.com> Date: Sat, 9 Sep 2023 05:03:27 +0200 Subject: [PATCH 1/2] Update users.py Update get_follows for current helix endpoint --- resources/lib/twitch/api/helix/users.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/resources/lib/twitch/api/helix/users.py b/resources/lib/twitch/api/helix/users.py index 8ce14c7..4da035d 100644 --- a/resources/lib/twitch/api/helix/users.py +++ b/resources/lib/twitch/api/helix/users.py @@ -31,12 +31,10 @@ def get_users(user_id=list(), user_login=list(), use_app_token=False): # required scope: none @query -def get_follows(from_id='', to_id='', after='MA==', before='MA==', first=20, use_app_token=False): - q = Qry('users/follows', use_app_token=use_app_token) - q.add_param(keys.FROM_ID, from_id, '') - q.add_param(keys.TO_ID, to_id, '') +def get_follows(user_id='', after='MA==', first=20, use_app_token=False): + q = Qry('channels/followed', use_app_token=use_app_token) + q.add_param(keys.USER_ID, user_id, '') q.add_param(keys.AFTER, Cursor.validate(after), 'MA==') - q.add_param(keys.BEFORE, Cursor.validate(before), 'MA==') q.add_param(keys.FIRST, IntRange(1, 100).validate(first), 20) return q From be4d45e7228613d657ad505738569cfe67d2d6c3 Mon Sep 17 00:00:00 2001 From: apo86 <57818762+apo86@users.noreply.github.com> Date: Sat, 9 Sep 2023 13:42:57 +0200 Subject: [PATCH 2/2] Update addon.xml Version bump + news --- addon.xml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addon.xml b/addon.xml index 70a7647..6933414 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -9,8 +9,7 @@ all -[fix] oauth queries -[lang] updated translations from Weblate +[fix] Following Channels resources/media/icon.png