mirror of
https://github.com/inotia00/revanced-patches.git
synced 2025-05-22 19:09:12 +02:00
feat(youtube/custom-video-speed): Custom video speed array not showing up in settings
This commit is contained in:
parent
435ff6a8ad
commit
4f65c3717c
@ -50,18 +50,6 @@ class CustomVideoSpeedPatch : BytecodePatch(
|
||||
val splits = speed.replace(" ","").split(",")
|
||||
if (splits.isEmpty()) throw IllegalArgumentException("Invalid speed elements")
|
||||
|
||||
val speedElements = splits.map { it }
|
||||
for (index in 0 until splits.count()) {
|
||||
contexts.addEntries(
|
||||
arrayPath, speedElements[index] + "x",
|
||||
entriesName
|
||||
)
|
||||
contexts.addEntryValues(
|
||||
arrayPath, speedElements[index],
|
||||
entryValueName
|
||||
)
|
||||
}
|
||||
|
||||
val videoSpeedsArray = splits.map { it.toFloat().toRawBits() }
|
||||
|
||||
SpeedArrayGeneratorFingerprint.result?.let { result ->
|
||||
@ -167,6 +155,17 @@ class CustomVideoSpeedPatch : BytecodePatch(
|
||||
*/
|
||||
contexts.copyXmlNode("youtube/customspeed/host", "values/arrays.xml", "resources")
|
||||
|
||||
val speedElements = splits.map { it }
|
||||
for (index in 0 until splits.count()) {
|
||||
contexts.addEntries(
|
||||
arrayPath, speedElements[index] + "x",
|
||||
entriesName
|
||||
)
|
||||
contexts.addEntryValues(
|
||||
arrayPath, speedElements[index],
|
||||
entryValueName
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Add settings
|
||||
|
Loading…
x
Reference in New Issue
Block a user