Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillatrev committed Dec 21, 2023
1 parent 71776f0 commit 0c87876
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/rev_ai/apiclient.py
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,8 @@ def get_translated_captions(self, id_, language, content_type=CaptionType.SRT, c

response = self._make_http_request(
"GET",
urljoin(self.base_url, 'jobs/{0}/captions/translation/{2}{1}'.format(id_, query, language)),
urljoin(self.base_url,
'jobs/{0}/captions/translation/{1}{2}'.format(id_, language, query)),
headers={'Accept': content_type.value}
)

Expand Down Expand Up @@ -473,7 +474,8 @@ def get_translated_captions_as_stream(self, id_, language, content_type=CaptionT

response = self._make_http_request(
"GET",
urljoin(self.base_url, 'jobs/{0}/captions/translation/{2}{1}'.format(id_, query, language)),
urljoin(self.base_url,
'jobs/{0}/captions/translation/{1}{2}'.format(id_, language, query)),
headers={'Accept': content_type.value},
stream=True
)
Expand Down

0 comments on commit 0c87876

Please sign in to comment.