diff --git a/CHANGELOG.md b/CHANGELOG.md index 4d079191..b6307689 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -15,6 +15,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Bug where deleted channels cannot be removed from bookmarks +- Issue with Invidious instance caption test ## [0.29.2] - 2024-11-07 diff --git a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTestingTask.bs b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTestingTask.bs index 69bae1e5..8a0df504 100644 --- a/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTestingTask.bs +++ b/playlet-lib/src/components/Screens/SettingsScreen/InvidiousInstance/InvidiousInstanceTesting/InvidiousInstanceTestingTask.bs @@ -216,8 +216,12 @@ end function function CanFetchVideoCaptions(instance as string, testNode as object, cancellation as object) as void try - videoId = "jNQXAC9IVRw" + ' videoId = "jNQXAC9IVRw" + videoId = "k85mRPqvMbE" label = "English" + ' expectedText = `All right, so here we are, in front of the\nelephants` + expectedText = `Ding ding pch n daa, bam-ba-ba-re-bam` + url = `${instance}/api/v1/captions/${videoId}?label=${label}` response = HttpClient.Get(url).NoCache().Cancellation(cancellation).Await() @@ -242,7 +246,7 @@ function CanFetchVideoCaptions(instance as string, testNode as object, cancellat return end if - if text.InStr(`All right, so here we are, in front of the\nelephants`) = -1 + if text.InStr(expectedText) = -1 testNode.state = "failed" testNode.details = Tr(Locale.InvidiousTesting.ExpectedTextNotFoundInCaptionData).Replace("%1", url) return