kickpython 0.1.2__tar.gz → 0.1.3__tar.gz
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-0.1.2/kickpython.egg-info → kickpython-0.1.3}/PKG-INFO +1 -1
- {kickpython-0.1.2 → kickpython-0.1.3}/kickpython/api.py +7 -0
- {kickpython-0.1.2 → kickpython-0.1.3/kickpython.egg-info}/PKG-INFO +1 -1
- {kickpython-0.1.2 → kickpython-0.1.3}/setup.py +1 -1
- {kickpython-0.1.2 → kickpython-0.1.3}/.gitignore +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/LICENSE +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/MANIFEST.in +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/README.md +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/docs/README.md +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/docs/auth.md +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/docs/channels.md +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/docs/chat.md +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/docs/configuration.md +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/kickpython/__init__.py +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/kickpython/examples/listen_all_channels.py +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/kickpython/examples/oauth.py +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/kickpython/py.typed +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/kickpython.egg-info/SOURCES.txt +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/kickpython.egg-info/dependency_links.txt +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/kickpython.egg-info/top_level.txt +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/pyproject.toml +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/requirements-dev.txt +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/requirements.txt +0 -0
- {kickpython-0.1.2 → kickpython-0.1.3}/setup.cfg +0 -0
|
@@ -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
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|