1
0
mirror of https://github.com/snobu/destreamer.git synced 2026-01-17 05:22:18 +00:00

quick fix on subtitles for Stream

This commit is contained in:
Luca Armaroli
2021-10-15 22:43:28 +02:00
parent e4fe46c4a7
commit de158e3119

View File

@@ -108,7 +108,7 @@ export async function getStreamInfo(videoUrls: Array<VideoUrl>, session: StreamS
posterImageUrl = response?.data['posterImage']['medium']['url'];
if (subtitles) {
const captions: AxiosResponse<any> | undefined = await apiClient.callApi(`videos/${guid}/texttracks`, 'get');
const captions: AxiosResponse<any> | undefined = await apiClient.callApi(`videos/${guid.url}/texttracks`, 'get');
if (!captions?.data.value.length) {
captionsUrl = undefined;