From c88fd8bc4eddefaa8b494b279ee9a4eca8ad6cc3 Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Sun, 8 Mar 2020 14:31:24 +0900 Subject: [PATCH] Fix resume --- pytchat/core_async/livechat.py | 1 + pytchat/core_multithread/livechat.py | 1 + 2 files changed, 2 insertions(+) diff --git a/pytchat/core_async/livechat.py b/pytchat/core_async/livechat.py index 64529f4..48dd526 100644 --- a/pytchat/core_async/livechat.py +++ b/pytchat/core_async/livechat.py @@ -238,6 +238,7 @@ class LiveChatAsync: livechat_json = (await self._get_livechat_json( reload_continuation, session, headers)) contents = self._parser.get_contents(livechat_json) + self._is_replay = True self._first_fetch = False return contents diff --git a/pytchat/core_multithread/livechat.py b/pytchat/core_multithread/livechat.py index 401d7af..3e5d133 100644 --- a/pytchat/core_multithread/livechat.py +++ b/pytchat/core_multithread/livechat.py @@ -233,6 +233,7 @@ class LiveChat: livechat_json = (self._get_livechat_json( reload_continuation, session, headers)) contents = self._parser.get_contents(livechat_json) + self._is_replay = True self._first_fetch = False return contents