def _load(self, fn, notify=False):
"Load the video from a ZIP file"
with ZipFile(fn) as zf:
self._loadMeta(zf)
self._costumes = []
i = 0
while i >= 0:
try:
if notify: notify(fn, i, self)
data = zf.read(str(i))
if data: data = data[:-12], data[-12:]
else: data = self._costumes[i-1]
i += 1
self._costumes.append(data)
except:
if notify: notify(fn, None, self)
i = -1
评论列表
文章目录