kickpython 0.1.3__tar.gz → 0.1.5__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.3/kickpython.egg-info → kickpython-0.1.5}/PKG-INFO +1 -1
- {kickpython-0.1.3 → kickpython-0.1.5}/kickpython/api.py +4 -2
- {kickpython-0.1.3 → kickpython-0.1.5/kickpython.egg-info}/PKG-INFO +1 -1
- {kickpython-0.1.3 → kickpython-0.1.5}/setup.py +1 -1
- {kickpython-0.1.3 → kickpython-0.1.5}/.gitignore +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/LICENSE +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/MANIFEST.in +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/README.md +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/docs/README.md +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/docs/auth.md +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/docs/channels.md +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/docs/chat.md +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/docs/configuration.md +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/kickpython/__init__.py +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/kickpython/examples/listen_all_channels.py +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/kickpython/examples/oauth.py +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/kickpython/py.typed +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/kickpython.egg-info/SOURCES.txt +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/kickpython.egg-info/dependency_links.txt +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/kickpython.egg-info/top_level.txt +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/pyproject.toml +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/requirements-dev.txt +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/requirements.txt +0 -0
- {kickpython-0.1.3 → kickpython-0.1.5}/setup.cfg +0 -0
|
@@ -21,7 +21,8 @@ class KickAPI:
|
|
|
21
21
|
base_url="https://api.kick.com/public/v1",
|
|
22
22
|
oauth_base_url="https://id.kick.com",
|
|
23
23
|
db_path="kick_tokens.db",
|
|
24
|
-
proxy=None, proxy_auth=None,
|
|
24
|
+
proxy=None, proxy_auth=None,
|
|
25
|
+
token_refresh_interval=3600, **kwargs):
|
|
25
26
|
self.base_url = base_url
|
|
26
27
|
self.oauth_base_url = oauth_base_url
|
|
27
28
|
self.client_id = client_id
|
|
@@ -35,7 +36,7 @@ class KickAPI:
|
|
|
35
36
|
self.message_handlers = []
|
|
36
37
|
self.session = None
|
|
37
38
|
self.refresh_task = None
|
|
38
|
-
self._refresh_interval =
|
|
39
|
+
self._refresh_interval = token_refresh_interval # Refresh tokens every hour
|
|
39
40
|
self._should_refresh = False
|
|
40
41
|
|
|
41
42
|
# Initialize database if needed
|
|
@@ -769,6 +770,7 @@ class KickAPI:
|
|
|
769
770
|
for (channel_id,) in channels:
|
|
770
771
|
try:
|
|
771
772
|
await self.refresh_token(channel_id)
|
|
773
|
+
logger.info(f"Refreshed token for channel {channel_id}")
|
|
772
774
|
except Exception as e:
|
|
773
775
|
logger.error(f"Failed to refresh token for channel {channel_id}: {e}")
|
|
774
776
|
|
|
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
|