Fix parameters for live

This commit is contained in:
taizan-hokouto
2021-02-11 01:56:32 +09:00
parent af4c2fe4b9
commit f46845c777
4 changed files with 32 additions and 12 deletions

View File

@@ -95,7 +95,10 @@ class PytchatCore:
"""Fetch first continuation parameter,
create and start _listen loop.
"""
self.continuation = liveparam.getparam(self._video_id, past_sec=3)
self.continuation = liveparam.getparam(
self._video_id,
channel_id=util.get_channelid(httpx.Client(http2=True), self._video_id),
past_sec=3)
def _get_chat_component(self):
''' Fetch chat data and store them into buffer,