Make it possible to retrieve chat before broadcast

by specifying negative number in seektime
This commit is contained in:
taizan-hokuto
2020-01-04 00:41:58 +09:00
parent 5d228589f1
commit b5e302cdf3

View File

@@ -70,10 +70,11 @@ def _build(video_id, seektime, topchatonly = False):
if seektime < 0:
raise ValueError('seektime is 0 or positive number.')
times =_nval(0)
switch = b'\x04'
if seektime == 0:
times =_nval(1)
switch = b'\x04'
switch = b'\x03'
else:
times =_nval(int(seektime*1000000))
switch = b'\x03'