Skip to content

Commit

Permalink
fix: decode bytebuffer properly (ReVanced#121)
Browse files Browse the repository at this point in the history
  • Loading branch information
OxrxL authored Aug 14, 2022
1 parent 1197313 commit d257b6d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ private static boolean containsLithoAd(String value, ByteBuffer buffer) {
bufferBlockList.add("YouTube Movies");
}
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;

if (SettingsEnum.ADREMOVER_COMMENTS_REMOVAL.getBoolean()) {
Expand Down

0 comments on commit d257b6d

Please sign in to comment.