ugcinc 4.1.51 → 4.1.52
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.
- package/dist/render.js +4 -3
- package/package.json +1 -1
package/dist/render.js
CHANGED
|
@@ -13,8 +13,9 @@ exports.submitAutoCaptionRenderJob = submitAutoCaptionRenderJob;
|
|
|
13
13
|
exports.submitInstagramDmRenderJob = submitInstagramDmRenderJob;
|
|
14
14
|
exports.submitIMessageDmRenderJob = submitIMessageDmRenderJob;
|
|
15
15
|
// Modal renderer endpoints
|
|
16
|
-
const
|
|
17
|
-
const
|
|
16
|
+
const RENDER_BASE_URL = "https://render.ugc.inc";
|
|
17
|
+
const RENDER_SUBMIT_URL = `${RENDER_BASE_URL}/submit-job`;
|
|
18
|
+
const RENDER_STATUS_URL = `${RENDER_BASE_URL}/get-status`;
|
|
18
19
|
// =============================================================================
|
|
19
20
|
// DM Message Transformation Helpers
|
|
20
21
|
// =============================================================================
|
|
@@ -172,7 +173,7 @@ async function getRenderJobStatus(jobId) {
|
|
|
172
173
|
}
|
|
173
174
|
// Fallback to download endpoint if Modal didn't provide a URL
|
|
174
175
|
if (data.status === 'completed' && !data.download_url) {
|
|
175
|
-
data.download_url =
|
|
176
|
+
data.download_url = `${RENDER_BASE_URL}/download?job_id=${jobId}`;
|
|
176
177
|
}
|
|
177
178
|
return { ok: true, code: 200, message: "Job status retrieved", data };
|
|
178
179
|
}
|