Skip to content

Commit 0b098a2

Browse files
authored
fix(Boost for reddit - Fix missing audio in video downloads): Replace correct strings (#3379)
1 parent 2bfd75c commit 0b098a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/fix/downloads/FixAudioMissingInDownloadsPatch.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ object FixAudioMissingInDownloadsPatch : BytecodePatch(
2525
)
2626
override fun execute(context: BytecodeContext) {
2727
DownloadAudioFingerprint.resultOrThrow().let { result ->
28-
result.scanResult.stringsScanResult!!.matches.take(2).forEach { match ->
28+
result.scanResult.stringsScanResult!!.matches.forEach { match ->
2929
result.mutableMethod.apply {
3030
val replacement = endpointReplacements[match.string]
3131
val register = getInstruction<OneRegisterInstruction>(match.index).registerA

src/main/kotlin/app/revanced/patches/reddit/customclients/boostforreddit/fix/downloads/fingerprints/DownloadAudioFingerprint.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ package app.revanced.patches.reddit.customclients.boostforreddit.fix.downloads.f
33
import app.revanced.patcher.fingerprint.MethodFingerprint
44

55
internal object DownloadAudioFingerprint : MethodFingerprint(
6-
strings = setOf("/DASH_audio.mp4", "/audio", "v.redd.it", "/"),
6+
strings = setOf("/DASH_audio.mp4", "/audio"),
77
)

0 commit comments

Comments
 (0)