You've already forked XiguaLiveDanmakuHelper
下载完成后不自动更新(依赖外面循环更新
This commit is contained in:
@ -13,7 +13,7 @@ def download():
|
||||
Common.appendError("Download with No StreamUrl Specific")
|
||||
break
|
||||
path = datetime.strftime(datetime.now(), "%Y%m%d_%H%M.flv")
|
||||
p = session.get(Common.streamUrl, stream=True, timeout=10)
|
||||
p = session.get(Common.streamUrl, stream=True, timeout=5)
|
||||
if p.status_code != 200:
|
||||
Common.appendDownloadStatus("Download with Response {}".format(p.status_code))
|
||||
Common.api.updRoomInfo(True)
|
||||
@ -42,7 +42,6 @@ def download():
|
||||
os.remove(path)
|
||||
return False
|
||||
Common.encodeQueue.put(path)
|
||||
Common.api.updRoomInfo()
|
||||
|
||||
|
||||
def encode():
|
||||
|
Reference in New Issue
Block a user