From fe87d2cf4d4c9f2f69fa656b55b315aa18933b57 Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Mon, 31 Oct 2022 11:09:57 +0000 Subject: [PATCH 1/2] Don't log error response. --- src/main/java/me/kavin/piped/utils/ExceptionHandler.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/me/kavin/piped/utils/ExceptionHandler.java b/src/main/java/me/kavin/piped/utils/ExceptionHandler.java index 529956f..86fb1f6 100644 --- a/src/main/java/me/kavin/piped/utils/ExceptionHandler.java +++ b/src/main/java/me/kavin/piped/utils/ExceptionHandler.java @@ -20,7 +20,7 @@ public class ExceptionHandler { if (e.getCause() != null && (e instanceof ExecutionException || e instanceof CompletionException)) e = (Exception) e.getCause(); - if (!(e instanceof ContentNotAvailableException)) { + if (!(e instanceof ContentNotAvailableException || e instanceof ErrorResponse)) { Sentry.captureException(e); if (Constants.SENTRY_DSN.isEmpty()) { if (path != null) From 952732a4d89a9498229ac2c9b7c0b8a6fa45b0ba Mon Sep 17 00:00:00 2001 From: Kavin <20838718+FireMasterK@users.noreply.github.com> Date: Mon, 31 Oct 2022 11:10:11 +0000 Subject: [PATCH 2/2] Update NPE. --- build.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index f52eb75..d8d082e 100644 --- a/build.gradle +++ b/build.gradle @@ -16,7 +16,7 @@ dependencies { implementation 'it.unimi.dsi:fastutil-core:8.5.9' implementation 'commons-codec:commons-codec:1.15' implementation 'org.bouncycastle:bcprov-jdk15on:1.70' - implementation 'com.github.FireMasterK.NewPipeExtractor:NewPipeExtractor:389ec4bd58b8b18ea0296cb63e156c524cfc3fe0' + implementation 'com.github.FireMasterK.NewPipeExtractor:NewPipeExtractor:895a175ee4126c04f52f888cb20f9c97b6afab34' implementation 'com.github.FireMasterK:nanojson:5df3e81e87b791d01f132f376e4b7d4a1780f346' implementation 'com.fasterxml.jackson.core:jackson-core:2.13.4' implementation 'com.fasterxml.jackson.core:jackson-annotations:2.13.4'