kickpython 0.1.2__py3-none-any.whl → 0.1.3__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
kickpython/api.py CHANGED
@@ -264,6 +264,8 @@ class KickAPI:
264
264
  # Get channel_id if not provided
265
265
  if not channel_id:
266
266
  channel_id = await self.get_broadcaster_id(token_data["access_token"])
267
+ token_data["channel_id"] = channel_id
268
+
267
269
  if not channel_id:
268
270
  logger.error("Could not determine broadcaster ID from token")
269
271
  return None
@@ -276,6 +278,11 @@ class KickAPI:
276
278
  token_data["expires_in"],
277
279
  token_data["scope"]
278
280
  )
281
+ try:
282
+ channel_name = await self.fetch_channel_username(channel_id)
283
+ await self.get_chatroom_id(channel_name)
284
+ except Exception as e:
285
+ logger.error(f"Failed to fetch channel info: {e}")
279
286
 
280
287
  return token_data
281
288
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: kickpython
3
- Version: 0.1.2
3
+ Version: 0.1.3
4
4
  Summary: Python wrapper for Kick.com API
5
5
  Home-page: https://github.com/berkay-digital/kickpython
6
6
  Author: berkay.digital
@@ -0,0 +1,10 @@
1
+ kickpython/__init__.py,sha256=kBeAyCTyN4fTvXXNk0gPGYMnpEl4KEsqVKy5Fd17D_0,153
2
+ kickpython/api.py,sha256=SMH1lnR52CU5ywFJtnqdIT4ckhEl22RbynCd2xklkT0,31173
3
+ kickpython/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
+ kickpython/examples/listen_all_channels.py,sha256=QhdqJopIKG-8sIpaRBYa8m7j1WH2Mk7e3hydBhrs9vw,3399
5
+ kickpython/examples/oauth.py,sha256=KkdWvXRRG-LlRb-vtZUVA3BbvVFCsSg02sRED8c4qqU,6615
6
+ kickpython-0.1.3.dist-info/LICENSE,sha256=Eq9Igq8OyVjZRODIgyVcVjG4TBJUELQCpG-ULLNTw9Q,1070
7
+ kickpython-0.1.3.dist-info/METADATA,sha256=ZAZGFnZTE1CnVAzqX98VXtwDwYWIKu7fI_9H6ztCxn0,4752
8
+ kickpython-0.1.3.dist-info/WHEEL,sha256=jB7zZ3N9hIM9adW7qlTAyycLYW9npaWKLRzaoVcLKcM,91
9
+ kickpython-0.1.3.dist-info/top_level.txt,sha256=mDDQz6hz_Z8Vc4djAyfeKkoZK5UgBJbQJfGVP9_Jh-w,11
10
+ kickpython-0.1.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.8.1)
2
+ Generator: setuptools (75.8.2)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,10 +0,0 @@
1
- kickpython/__init__.py,sha256=kBeAyCTyN4fTvXXNk0gPGYMnpEl4KEsqVKy5Fd17D_0,153
2
- kickpython/api.py,sha256=4cXmef_8VUymLdfFSRlEZ9gUubzMYbqF5gQmSS0iYLA,30865
3
- kickpython/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
4
- kickpython/examples/listen_all_channels.py,sha256=QhdqJopIKG-8sIpaRBYa8m7j1WH2Mk7e3hydBhrs9vw,3399
5
- kickpython/examples/oauth.py,sha256=KkdWvXRRG-LlRb-vtZUVA3BbvVFCsSg02sRED8c4qqU,6615
6
- kickpython-0.1.2.dist-info/LICENSE,sha256=Eq9Igq8OyVjZRODIgyVcVjG4TBJUELQCpG-ULLNTw9Q,1070
7
- kickpython-0.1.2.dist-info/METADATA,sha256=4YDfQ17_iUuK4sAxBI-yrJr3G1FMcBFHfVaTMdazVu0,4752
8
- kickpython-0.1.2.dist-info/WHEEL,sha256=nn6H5-ilmfVryoAQl3ZQ2l8SH5imPWFpm1A5FgEuFV4,91
9
- kickpython-0.1.2.dist-info/top_level.txt,sha256=mDDQz6hz_Z8Vc4djAyfeKkoZK5UgBJbQJfGVP9_Jh-w,11
10
- kickpython-0.1.2.dist-info/RECORD,,