Skip to content

Commit 24711ac

Browse files
committed
feat: add job id
1 parent 80f4541 commit 24711ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

videodb/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ def transcode(
213213
:return: None
214214
:rtype: None
215215
"""
216-
self.post(
216+
job_data = self.post(
217217
path=f"{ApiPath.transcode}",
218218
data={
219219
"source": source,
@@ -225,6 +225,7 @@ def transcode(
225225
"audio_config": audio_config.__dict__,
226226
},
227227
)
228+
return job_data.get("job_id")
228229

229230
def get_transcode_details(self, job_id: str) -> dict:
230231
"""Get the details of a transcode job.

0 commit comments

Comments
 (0)