chore: Log hiding mix playlists (#485)

Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
nullptr 2023-09-28 07:49:12 +05:00 committed by GitHub
parent 91096532ee
commit cc416bc4f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,6 +195,11 @@ public final class LayoutComponentsFilter extends Filter {
* Called from a different place then the other filters.
*/
public static boolean filterMixPlaylists(final byte[] bytes) {
return mixPlaylists.check(bytes).isFiltered();
final boolean isMixPlaylistFiltered = mixPlaylists.check(bytes).isFiltered();
if (isMixPlaylistFiltered)
LogHelper.printDebug(() -> "Filtered mix playlist");
return isMixPlaylistFiltered;
}
}