We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b577b12 commit 8082260Copy full SHA for 8082260
1 file changed
app/modules/libraryposter/poster.py
@@ -93,7 +93,7 @@ async def get_libraries(self) -> list[dict[str, Any]]:
93
94
return resp.json()["Items"]
95
96
- async def get_library_items(#修改的函数
+ async def get_library_items(
97
self,
98
library_id: str,
99
user_id: str = "",
@@ -122,7 +122,7 @@ async def get_library_items(#修改的函数
122
)
123
return []
124
125
- while len(all_items) < 15 and max_depth <= 5:
+ while len(all_items) < 15 and max_depth <= 5:#如果当前目录获取的海报小于15张,那么增加一级文件夹层级获取更多海报,最多5个级别
126
all_items = await self.fetch_items(library_id, user_id, max_depth=max_depth)
127
max_depth += 1
128
0 commit comments