This commit is contained in:
jxxghp
2023-06-09 15:02:46 +08:00
parent a60e3b8a04
commit 017fce9e6f
4 changed files with 8 additions and 8 deletions

View File

@ -378,8 +378,8 @@ class Douban(_ModuleBase):
logger.info(f"正在下载{file_path.stem}图片:{url} ...")
r = RequestUtils().get_res(url=url)
if r:
# 下载到temp目录远程则先存到temp再远程移动本地则直接保存
logger.info(f"图片已保存:{file_path.name}")
file_path.write_bytes(r.content)
logger.info(f"图片已保存:{file_path}")
else:
logger.info(f"{file_path.stem}图片下载失败,请检查网络连通性")
except Exception as err:
@ -394,4 +394,4 @@ class Douban(_ModuleBase):
return
xml_str = doc.toprettyxml(indent=" ", encoding="utf-8")
file_path.write_bytes(xml_str)
logger.info(f"NFO文件已保存{file_path.name}")
logger.info(f"NFO文件已保存{file_path}")