Fix comments
This commit is contained in:
@@ -171,7 +171,7 @@ class ReplayChatAsync:
|
|||||||
#pause
|
#pause
|
||||||
await self._pauser.get()
|
await self._pauser.get()
|
||||||
#resume
|
#resume
|
||||||
#prohibit from blockng by putting None into _pauser.
|
#prohibit from blocking by putting None into _pauser.
|
||||||
self._pauser.put_nowait(None)
|
self._pauser.put_nowait(None)
|
||||||
livechat_json = (await
|
livechat_json = (await
|
||||||
self._get_livechat_json(continuation, session, headers)
|
self._get_livechat_json(continuation, session, headers)
|
||||||
|
|||||||
@@ -165,13 +165,12 @@ class ReplayChat:
|
|||||||
#pause
|
#pause
|
||||||
self._pauser.get()
|
self._pauser.get()
|
||||||
#resume
|
#resume
|
||||||
#prohibit from blockng by putting None into _pauser.
|
#prohibit from blocking by putting None into _pauser.
|
||||||
self._pauser.put_nowait(None)
|
self._pauser.put_nowait(None)
|
||||||
livechat_json = (
|
livechat_json = (
|
||||||
self._get_livechat_json(continuation, session, headers)
|
self._get_livechat_json(continuation, session, headers)
|
||||||
)
|
)
|
||||||
metadata, chatdata = self._parser.parse( livechat_json )
|
metadata, chatdata = self._parser.parse( livechat_json )
|
||||||
#チャットデータを含むコンポーネントを組み立ててbufferに投入する
|
|
||||||
timeout = metadata['timeoutMs']/1000
|
timeout = metadata['timeoutMs']/1000
|
||||||
chat_component = {
|
chat_component = {
|
||||||
"video_id" : self.video_id,
|
"video_id" : self.video_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user