Skip to content

Commit 9dd990b

Browse files
committed
Restore 8856e97
1 parent c116b87 commit 9dd990b

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/error/ErrorInfo.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ package org.schabi.newpipe.error
33
import android.content.Context
44
import android.os.Parcelable
55
import androidx.annotation.StringRes
6-
import androidx.core.content.ContextCompat
76
import com.google.android.exoplayer2.ExoPlaybackException
87
import com.google.android.exoplayer2.upstream.HttpDataSource
98
import com.google.android.exoplayer2.upstream.Loader
@@ -275,6 +274,9 @@ class ErrorInfo private constructor(
275274
// we don't have an exception, so this is a manually built error, which likely
276275
// indicates that it's important and is thus reportable
277276
null -> true
277+
// a recaptcha was detected, and the user needs to solve it, there is no use in
278+
// letting users report it
279+
is ReCaptchaException -> false
278280
// the service explicitly said that content is not available (e.g. age restrictions,
279281
// video deleted, etc.), there is no use in letting users report it
280282
is ContentNotAvailableException -> false

0 commit comments

Comments
 (0)