上传完成后自动删除片段,以节省内存

This commit is contained in:
Jerry Yan 2019-01-26 14:04:23 +08:00
parent c41ed1f950
commit 90435ccbaf

View File

@ -1,9 +1,4 @@
# coding=utf-8
"""
:author: comwrg
:license: MIT
:time: 2017/06/09
"""
import os
import re
@ -324,6 +319,8 @@ class Bilibili:
"videos" : self.videos}
)
print(r.text)
for _p in self.videos:
os.remove(_p.path)