From de158e3119d49276b39871a657414ea5ce830c34 Mon Sep 17 00:00:00 2001 From: Luca Armaroli Date: Fri, 15 Oct 2021 22:43:28 +0200 Subject: [PATCH] quick fix on subtitles for Stream --- src/VideoUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;