绝对路径处理

This commit is contained in:
Jerry Yan 2022-05-30 07:59:51 +08:00
parent a0fa46355b
commit 3d796ce447

View File

@ -45,10 +45,10 @@ def download():
Common.api.updRoomInfo(True) Common.api.updRoomInfo(True)
finally: finally:
f.close() f.close()
if os.path.getsize(path) < Common.config["i_s"]: if os.path.getsize(os.path.join(base_path, path)) < Common.config["i_s"]:
Common.modifyLastDownloadStatus("Downloaded File >{}< is too small, will ignore it".format(path)) Common.modifyLastDownloadStatus("Downloaded File >{}< is too small, will ignore it".format(path))
else: else:
Common.encodeQueue.put(path) Common.encodeQueue.put(os.path.join(base_path, path))
Common.doUpdatePlaylist() Common.doUpdatePlaylist()
Common.api.updRoomInfo(True) Common.api.updRoomInfo(True)