This commit is contained in:
taizan-hokuto
2020-02-02 22:36:26 +09:00
parent e8510f1116
commit 24f08ecbdb
15 changed files with 19553 additions and 26 deletions

View File

@@ -3,27 +3,27 @@ class Block:
Parameter:
---------
pos : int
pos : int :
index of this block on block list.
first : int
first : int :
videoOffsetTimeMs of chat_data[0]
last : int
videoOffsetTimeMs of the last chat_data current read.
last : int :
videoOffsetTimeMs of the last chat_data.
(chat_data[-1])
this value increases as fetching chatdata progresses.
temp_last : int
temporary videoOffsetTimeMs of last chat data,
temp_last : int :
target videoOffsetTimeMs of last chat data for download,
equals to first videoOffsetTimeMs of next block.
when download worker reaches this offset, the download will stop.
when download worker reaches this offset, stop downloading.
continuation : str
continuation : str :
continuation param of last chat data.
chat_data : List
chat_data : List
"""
def __init__(self, pos=0, first=0, last=0,
continuation='', chat_data=[]):