From 870d1f3fbe4dfebfd7d25e49efc4006129f6133c Mon Sep 17 00:00:00 2001 From: taizan-hokuto <55448286+taizan-hokuto@users.noreply.github.com> Date: Sun, 31 May 2020 22:57:12 +0900 Subject: [PATCH] Modify parameters for archived chat --- pytchat/paramgen/arcparam.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pytchat/paramgen/arcparam.py b/pytchat/paramgen/arcparam.py index 9ea6be2..a8048d5 100644 --- a/pytchat/paramgen/arcparam.py +++ b/pytchat/paramgen/arcparam.py @@ -26,9 +26,9 @@ def _build(video_id, seektime, topchat_only) -> str: if topchat_only: chattype = 4 - fetch_before_start = 0 + fetch_before_start = 3 if seektime < 0: - fetch_before_start = 1 + fetch_before_start = 4 elif seektime == 0: timestamp = 1 else: @@ -39,8 +39,8 @@ def _build(video_id, seektime, topchat_only) -> str: entity.timestamp = timestamp entity.s6 = 0 entity.s7 = 0 - entity.s8 = fetch_before_start - entity.s9 = 3 + entity.s8 = 0 + entity.s9 = fetch_before_start entity.s10 = '' entity.s12 = chattype entity.chattype.value = chattype