Skip to content

Commit

Permalink
fix(Boost for reddit - Fix missing audio in video downloads): Replace…
Browse files Browse the repository at this point in the history
… correct strings (#3379)
  • Loading branch information
OctoNezd committed Jun 24, 2024
1 parent 8d792d3 commit b43db98
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ object FixAudioMissingInDownloadsPatch : BytecodePatch(
)
override fun execute(context: BytecodeContext) {
DownloadAudioFingerprint.resultOrThrow().let { result ->
result.scanResult.stringsScanResult!!.matches.take(2).forEach { match ->
result.scanResult.stringsScanResult!!.matches.forEach { match ->
result.mutableMethod.apply {
val replacement = endpointReplacements[match.string]
val register = getInstruction<OneRegisterInstruction>(match.index).registerA
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@ package app.revanced.patches.reddit.customclients.boostforreddit.fix.downloads.f
import app.revanced.patcher.fingerprint.MethodFingerprint

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

0 comments on commit b43db98

Please sign in to comment.