From 921b5c95f318d93d458ee512f048d8cedbe43204 Mon Sep 17 00:00:00 2001 From: inotia00 Date: Sun, 30 Apr 2023 21:49:59 +0900 Subject: [PATCH] fix(custom-video-speed): crash due to invalid key https://github.com/inotia00/ReVanced_Extended/issues/911 --- .../video/customspeed/resource/patch/CustomVideoSpeedPatch.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/app/revanced/patches/youtube/video/customspeed/resource/patch/CustomVideoSpeedPatch.kt b/src/main/kotlin/app/revanced/patches/youtube/video/customspeed/resource/patch/CustomVideoSpeedPatch.kt index 28d23d676..ca1b5a033 100644 --- a/src/main/kotlin/app/revanced/patches/youtube/video/customspeed/resource/patch/CustomVideoSpeedPatch.kt +++ b/src/main/kotlin/app/revanced/patches/youtube/video/customspeed/resource/patch/CustomVideoSpeedPatch.kt @@ -45,8 +45,8 @@ class CustomVideoSpeedPatch : ResourcePatch { if (splits.isEmpty()) throw IllegalArgumentException("Invalid speed elements") val speedElements = splits.map { it } for (index in 0 until splits.count()) { - context.addEntries(TARGET_ARRAY_PATH, speedElements[index] + "x", TARGET_ENTRY_VALUE_NAME) - context.addEntryValues(TARGET_ARRAY_PATH, speedElements[index], TARGET_ENTRIES_NAME) + context.addEntries(TARGET_ARRAY_PATH, speedElements[index] + "x", TARGET_ENTRIES_NAME) + context.addEntryValues(TARGET_ARRAY_PATH, speedElements[index], TARGET_ENTRY_VALUE_NAME) } /*