mirror of
https://github.com/revanced/revanced-patches.git
synced 2025-05-02 07:34:32 +02:00
refactor(YouTube - Hide mix playlist): Do not search path or buffer unless setting is enabled
This commit is contained in:
parent
612facb905
commit
31af587943
@ -31,7 +31,7 @@ public final class LayoutComponentsFilter extends Filter {
|
||||
"cell_description_body"
|
||||
);
|
||||
private static final ByteArrayFilterGroup mixPlaylists = new ByteArrayFilterGroup(
|
||||
Settings.HIDE_MIX_PLAYLISTS,
|
||||
null,
|
||||
"&list="
|
||||
);
|
||||
|
||||
@ -344,6 +344,10 @@ public final class LayoutComponentsFilter extends Filter {
|
||||
*/
|
||||
public static boolean filterMixPlaylists(final Object conversionContext, @Nullable final byte[] bytes) {
|
||||
try {
|
||||
if (!Settings.HIDE_MIX_PLAYLISTS.get()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (bytes == null) {
|
||||
Logger.printDebug(() -> "bytes is null");
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user