diff --git a/app/modules/douban/__init__.py b/app/modules/douban/__init__.py index 87404440..84a49485 100644 --- a/app/modules/douban/__init__.py +++ b/app/modules/douban/__init__.py @@ -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}") diff --git a/app/modules/qbittorrent/qbittorrent.py b/app/modules/qbittorrent/qbittorrent.py index c5581fc7..3d088c8c 100644 --- a/app/modules/qbittorrent/qbittorrent.py +++ b/app/modules/qbittorrent/qbittorrent.py @@ -167,7 +167,7 @@ class Qbittorrent(metaclass=Singleton): trans_tasks.append({ 'title': torrent.get('name'), 'path': torrent_path, - 'id': torrent.get('hash'), + 'hash': torrent.get('hash'), 'tags': torrent.get('tags') }) return trans_tasks diff --git a/app/modules/themoviedb/__init__.py b/app/modules/themoviedb/__init__.py index afc1167f..167d05ca 100644 --- a/app/modules/themoviedb/__init__.py +++ b/app/modules/themoviedb/__init__.py @@ -474,8 +474,8 @@ class TheMovieDb(_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: @@ -490,4 +490,4 @@ class TheMovieDb(_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}") diff --git a/app/modules/transmission/transmission.py b/app/modules/transmission/transmission.py index 7056595f..ee431ca8 100644 --- a/app/modules/transmission/transmission.py +++ b/app/modules/transmission/transmission.py @@ -154,7 +154,7 @@ class Transmission(metaclass=Singleton): trans_tasks.append({ 'title': torrent.name, 'path': Path(path) / torrent.name, - 'id': torrent.hashString, + 'hash': torrent.hashString, 'tags': torrent.labels }) return trans_tasks