Modify parameters for archived chat

This commit is contained in:
taizan-hokuto
2020-05-31 22:57:12 +09:00
parent 141dbcd2da
commit 870d1f3fbe

View File

@@ -26,9 +26,9 @@ def _build(video_id, seektime, topchat_only) -> str:
if topchat_only: if topchat_only:
chattype = 4 chattype = 4
fetch_before_start = 0 fetch_before_start = 3
if seektime < 0: if seektime < 0:
fetch_before_start = 1 fetch_before_start = 4
elif seektime == 0: elif seektime == 0:
timestamp = 1 timestamp = 1
else: else:
@@ -39,8 +39,8 @@ def _build(video_id, seektime, topchat_only) -> str:
entity.timestamp = timestamp entity.timestamp = timestamp
entity.s6 = 0 entity.s6 = 0
entity.s7 = 0 entity.s7 = 0
entity.s8 = fetch_before_start entity.s8 = 0
entity.s9 = 3 entity.s9 = fetch_before_start
entity.s10 = '' entity.s10 = ''
entity.s12 = chattype entity.s12 = chattype
entity.chattype.value = chattype entity.chattype.value = chattype