Skip to content

Commit 266f3ea

Browse files
Change DecryptException to DeobfuscateException.
1 parent aa87082 commit 266f3ea

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/src/main/java/org/schabi/newpipe/fragments/detail/VideoDetailFragment.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1641,7 +1641,7 @@ protected boolean onError(final Throwable exception) {
16411641
return true;
16421642
}
16431643

1644-
final int errorId = exception instanceof YoutubeStreamExtractor.DecryptException
1644+
final int errorId = exception instanceof YoutubeStreamExtractor.DeobfuscateException
16451645
? R.string.youtube_signature_decryption_error
16461646
: exception instanceof ExtractionException
16471647
? R.string.parsing_error

app/src/main/java/org/schabi/newpipe/util/ExtractorHelper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ public static void handleGeneralException(final Context context, final int servi
293293
} else if (exception instanceof ContentNotSupportedException) {
294294
Toast.makeText(context, R.string.content_not_supported, Toast.LENGTH_LONG).show();
295295
} else {
296-
final int errorId = exception instanceof YoutubeStreamExtractor.DecryptException
296+
final int errorId = exception instanceof YoutubeStreamExtractor.DeobfuscateException
297297
? R.string.youtube_signature_decryption_error
298298
: exception instanceof ParsingException
299299
? R.string.parsing_error : R.string.general_error;

0 commit comments

Comments
 (0)