Use same host for caption

This commit is contained in:
Brahim Hadriche committed 2022-11-05 20:53:56 -04:00
1 parent 215b4f4df2
commit 2c5942f569
1 file changed
+3 -1
+3 -1
View File
@@ -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