mirror of
https://github.com/revanced/revanced-patches
synced 2025-02-15 20:07:00 +01:00
fix: decode bytebuffer properly (#121)
This commit is contained in:
parent
6de8038496
commit
7bc088b3ce
@ -61,7 +61,7 @@ public class GeneralBytecodeAdsPatch {
|
|||||||
bufferBlockList.add("YouTube Movies");
|
bufferBlockList.add("YouTube Movies");
|
||||||
}
|
}
|
||||||
if (containsAny(value, "home_video_with_context", "related_video_with_context") &&
|
if (containsAny(value, "home_video_with_context", "related_video_with_context") &&
|
||||||
bufferBlockList.stream().anyMatch(StandardCharsets.UTF_8.decode(buffer).toString()::contains)
|
bufferBlockList.stream().anyMatch(new String(buffer.array(), StandardCharsets.UTF_8)::contains)
|
||||||
) return true;
|
) return true;
|
||||||
|
|
||||||
if (SettingsEnum.ADREMOVER_COMMENTS_REMOVAL.getBoolean()) {
|
if (SettingsEnum.ADREMOVER_COMMENTS_REMOVAL.getBoolean()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user