From 2c5942f569b5b01af108561c88785ca8b0169b36 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Sat, 5 Nov 2022 20:53:56 -0400 Subject: [PATCH] Use same host for caption --- src/components/UILogic/VideoPlayerLogic.brs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/UILogic/VideoPlayerLogic.brs b/src/components/UILogic/VideoPlayerLogic.brs index 436e8e6f..5e2864de 100644 --- a/src/components/UILogic/VideoPlayerLogic.brs +++ b/src/components/UILogic/VideoPlayerLogic.brs @@ -1,3 +1,5 @@ +import "pkg:/source/services/Invidious.bs" + sub ShowVideoScreen(videoMetadata as object, videoSponsorBlock as object) m.videoPlayer = CreateObject("roSGNode", "Video") rowNode = CreateObject("roSGNode", "ContentNode") @@ -42,7 +44,7 @@ sub SetCaptions(videoMetadata as object, videoPlayer as object, contentNode as o contentNode.SubtitleConfig = { ShowSubtitle: 1, - TrackName: "https://invidious.esmailelbob.xyz" + selectedCaption.url + TrackName: RokuYoutube.Services.Invidious.GetCurrentHost() + selectedCaption.url } end sub