仔细检查了config文件,应该没有设置错,但是执行任务的时候最后总是报错,无法生成媒体库封面,见如下日志文件。
autofilm | 【INFO】 2025-09-29 09:30:00 | 开始下载 夸克电影 媒体库的海报图片
autofilm | Job "LibraryPoster.run (trigger: cron[month='', day='', day_of_week='', hour='', minute='30'], next run at: 2025-09-29 10:30:00 CST)" raised an exception
autofilm | Traceback (most recent call last):
autofilm | File "/usr/local/lib/python3.12/site-packages/apscheduler/executors/base_py3.py", line 30, in run_coroutine_job
autofilm | retval = await job.func(*job.args, **job.kwargs)
autofilm | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
autofilm | File "/app/modules/libraryposter/poster.py", line 397, in run
autofilm | await self.process_library(
autofilm | File "/app/modules/libraryposter/poster.py", line 379, in pr
ocess_library
autofilm | async for image in self.download_library_poster(library):
autofilm | File "/app/modules/libraryposter/poster.py", line 156, in download_library_poster
autofilm | async for item in self.get_library_items(library["Id"]):
autofilm | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
autofilm | TypeError: 'async for' requires an object with aiter method, got coroutine
仔细检查了config文件,应该没有设置错,但是执行任务的时候最后总是报错,无法生成媒体库封面,见如下日志文件。
autofilm | 【INFO】 2025-09-29 09:30:00 | 开始下载 夸克电影 媒体库的海报图片
autofilm | Job "LibraryPoster.run (trigger: cron[month='', day='', day_of_week='', hour='', minute='30'], next run at: 2025-09-29 10:30:00 CST)" raised an exception
autofilm | Traceback (most recent call last):
autofilm | File "/usr/local/lib/python3.12/site-packages/apscheduler/executors/base_py3.py", line 30, in run_coroutine_job
autofilm | retval = await job.func(*job.args, **job.kwargs)
autofilm | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
autofilm | File "/app/modules/libraryposter/poster.py", line 397, in run
autofilm | await self.process_library(
autofilm | File "/app/modules/libraryposter/poster.py", line 379, in pr
ocess_library
autofilm | async for image in self.download_library_poster(library):
autofilm | File "/app/modules/libraryposter/poster.py", line 156, in download_library_poster
autofilm | async for item in self.get_library_items(library["Id"]):
autofilm | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
autofilm | TypeError: 'async for' requires an object with aiter method, got coroutine