diff --git a/playlet-lib/src/components/VideoPlayer/VideoContentJob.bs b/playlet-lib/src/components/VideoPlayer/VideoContentJob.bs index 89844c85..edafaed5 100644 --- a/playlet-lib/src/components/VideoPlayer/VideoContentJob.bs +++ b/playlet-lib/src/components/VideoPlayer/VideoContentJob.bs @@ -342,6 +342,10 @@ function SetCaptions(metadata as object, service as object, contentNode as objec end if isoLanguageList = StringUtils.ParseJsonSafe(ReadAsciiFile("libpkg:/config/ISO-639-1-to-ISO-639-2T.json5")) + if not IsAssociativeArray(isoLanguageList) + LogError("Failed to load ISO-639 language map; skipping captions") + return + end if instance = service.GetInstance() subtitleTracks = []