diff --git a/src/VideoUtils.ts b/src/VideoUtils.ts index 60b2c3d..69ec632 100644 --- a/src/VideoUtils.ts +++ b/src/VideoUtils.ts @@ -108,7 +108,7 @@ export async function getStreamInfo(videoUrls: Array, session: StreamS posterImageUrl = response?.data['posterImage']['medium']['url']; if (subtitles) { - const captions: AxiosResponse | undefined = await apiClient.callApi(`videos/${guid}/texttracks`, 'get'); + const captions: AxiosResponse | undefined = await apiClient.callApi(`videos/${guid.url}/texttracks`, 'get'); if (!captions?.data.value.length) { captionsUrl = undefined;