From 3af95d14fa8a8e9588942a03e179cf7a8a1cb225 Mon Sep 17 00:00:00 2001 From: "Yevhen Babiichuk (DustDFG)" Date: Thu, 12 Feb 2026 16:17:30 +0200 Subject: [PATCH] acceptUrl problem showoff --- .../extractor/linkhandler/LinkHandlerFactory.java | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/linkhandler/LinkHandlerFactory.java b/extractor/src/main/java/org/schabi/newpipe/extractor/linkhandler/LinkHandlerFactory.java index 1de9576057..cecfa9e609 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/linkhandler/LinkHandlerFactory.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/linkhandler/LinkHandlerFactory.java @@ -97,11 +97,13 @@ public LinkHandler fromId(final String id, final String baseUrl) throws ParsingE } /** - * When a VIEW_ACTION is caught this function will test if the url delivered within the calling - * Intent was meant to be watched with this Service. - * Return false if this service shall not allow to be called through ACTIONs. + * Tests if the url is supported by this LinkHandler type */ - public boolean acceptUrl(final String url) throws ParsingException { - return onAcceptUrl(url); + public final boolean acceptUrl(final String url) { + try { + return onAcceptUrl(url); + } catch (final Exception ignored) { + return false; + } } }