Fix seek time param
This commit is contained in:
@@ -88,7 +88,6 @@ class LiveChatAsync:
|
|||||||
self._pauser = Queue()
|
self._pauser = Queue()
|
||||||
self._pauser.put_nowait(None)
|
self._pauser.put_nowait(None)
|
||||||
self._setup()
|
self._setup()
|
||||||
#self._paramgen = liveparam
|
|
||||||
self._first_fetch = True
|
self._first_fetch = True
|
||||||
self._fetch_url = "live_chat/get_live_chat?continuation="
|
self._fetch_url = "live_chat/get_live_chat?continuation="
|
||||||
if not LiveChatAsync._setup_finished:
|
if not LiveChatAsync._setup_finished:
|
||||||
@@ -213,7 +212,7 @@ class LiveChatAsync:
|
|||||||
self._parser.mode = 'REPLAY'
|
self._parser.mode = 'REPLAY'
|
||||||
self._fetch_url = ("live_chat_replay/"
|
self._fetch_url = ("live_chat_replay/"
|
||||||
"get_live_chat_replay?continuation=")
|
"get_live_chat_replay?continuation=")
|
||||||
continuation = arcparam.getparam(self.video_id)
|
continuation = arcparam.getparam(self.video_id, self.seektime)
|
||||||
livechat_json = (await self._get_livechat_json(
|
livechat_json = (await self._get_livechat_json(
|
||||||
continuation, session, headers))
|
continuation, session, headers))
|
||||||
contents = self._parser.get_contents(livechat_json)
|
contents = self._parser.get_contents(livechat_json)
|
||||||
@@ -222,9 +221,8 @@ class LiveChatAsync:
|
|||||||
|
|
||||||
async def _get_livechat_json(self, continuation, session, headers):
|
async def _get_livechat_json(self, continuation, session, headers):
|
||||||
'''
|
'''
|
||||||
チャットデータが格納されたjsonデータを取得する。
|
Get json which includes chat data.
|
||||||
'''
|
'''
|
||||||
|
|
||||||
continuation = urllib.parse.quote(continuation)
|
continuation = urllib.parse.quote(continuation)
|
||||||
livechat_json = None
|
livechat_json = None
|
||||||
status_code = 0
|
status_code = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user