lightpdf-aipdf-mcp 0.1.66__py3-none-any.whl → 0.1.67__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- lightpdf_aipdf_mcp/common.py +4 -4
- {lightpdf_aipdf_mcp-0.1.66.dist-info → lightpdf_aipdf_mcp-0.1.67.dist-info}/METADATA +1 -1
- {lightpdf_aipdf_mcp-0.1.66.dist-info → lightpdf_aipdf_mcp-0.1.67.dist-info}/RECORD +5 -5
- {lightpdf_aipdf_mcp-0.1.66.dist-info → lightpdf_aipdf_mcp-0.1.67.dist-info}/WHEEL +0 -0
- {lightpdf_aipdf_mcp-0.1.66.dist-info → lightpdf_aipdf_mcp-0.1.67.dist-info}/entry_points.txt +0 -0
lightpdf_aipdf_mcp/common.py
CHANGED
@@ -152,12 +152,12 @@ class BaseApiClient:
|
|
152
152
|
await self.logger.log("warning", f"获取任务状态失败。状态码: {status_response.status_code}")
|
153
153
|
continue
|
154
154
|
|
155
|
-
status_result = status_response.json()
|
156
|
-
state = status_result.get("
|
157
|
-
progress = status_result.get("
|
155
|
+
status_result = status_response.json().get("data", {})
|
156
|
+
state = status_result.get("state")
|
157
|
+
progress = status_result.get("progress", 0)
|
158
158
|
|
159
159
|
if state == 1: # 完成
|
160
|
-
download_url = status_result.get("
|
160
|
+
download_url = status_result.get("file")
|
161
161
|
if not download_url:
|
162
162
|
await self.logger.error(f"任务完成但未找到下载链接。任务状态:{json.dumps(status_result, ensure_ascii=False)}")
|
163
163
|
return download_url
|
@@ -1,9 +1,9 @@
|
|
1
1
|
lightpdf_aipdf_mcp/__init__.py,sha256=PPnAgpvJLYLVOTxnHDmJAulFnHJD6wuTwS6tRGjqq6s,141
|
2
|
-
lightpdf_aipdf_mcp/common.py,sha256
|
2
|
+
lightpdf_aipdf_mcp/common.py,sha256=TLzWfiukB7uN9-EPbT3vVX1i4ero5j3d4L9vLe3MSCw,6601
|
3
3
|
lightpdf_aipdf_mcp/converter.py,sha256=7X4pK2y2NQBqhU1LLIJQhf7LUx6KaMiW26jt_KsX9fg,14567
|
4
4
|
lightpdf_aipdf_mcp/editor.py,sha256=xgoJoF2W_y41XpF_0_kvYTIB0rcDdskpMldoijqUeFI,26712
|
5
5
|
lightpdf_aipdf_mcp/server.py,sha256=kZR4sc6z-MFom88XgGWJK8Sw4JFSJkvGV0WVIGt7hvA,46946
|
6
|
-
lightpdf_aipdf_mcp-0.1.
|
7
|
-
lightpdf_aipdf_mcp-0.1.
|
8
|
-
lightpdf_aipdf_mcp-0.1.
|
9
|
-
lightpdf_aipdf_mcp-0.1.
|
6
|
+
lightpdf_aipdf_mcp-0.1.67.dist-info/METADATA,sha256=ZUIX05RVjSuZ9NL0QaAU8X6FS0_p4T8L90d3LPz3CNI,8119
|
7
|
+
lightpdf_aipdf_mcp-0.1.67.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
8
|
+
lightpdf_aipdf_mcp-0.1.67.dist-info/entry_points.txt,sha256=X7TGUe52N4sYH-tYt0YUGApeJgw-efQlZA6uAZmlmr4,63
|
9
|
+
lightpdf_aipdf_mcp-0.1.67.dist-info/RECORD,,
|
File without changes
|
{lightpdf_aipdf_mcp-0.1.66.dist-info → lightpdf_aipdf_mcp-0.1.67.dist-info}/entry_points.txt
RENAMED
File without changes
|