绝对路径处理
This commit is contained in:
parent
a0fa46355b
commit
3d796ce447
@ -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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user