Make it possible to retrieve chat before broadcast
by specifying negative number in seektime
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user