Skip to content

Commit 947ac28

Browse files
committed
Update NewPipeExtractor to v0.24.2
1 parent 0f64158 commit 947ac28

3 files changed

Lines changed: 5 additions & 9 deletions

File tree

app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ dependencies {
198198
// name and the commit hash with the commit hash of the (pushed) commit you want to test
199199
// This works thanks to JitPack: https://jitpack.io/
200200
implementation 'com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751'
201-
implementation 'com.github.TeamNewPipe:NewPipeExtractor:v0.24.1'
201+
implementation 'com.github.TeamNewPipe:NewPipeExtractor:v0.24.2'
202202
implementation 'com.github.TeamNewPipe:NoNonsense-FilePicker:5.0.0'
203203

204204
/** Checkstyle **/

app/src/main/java/org/schabi/newpipe/error/ReCaptchaActivity.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,6 @@
2727
import org.schabi.newpipe.extractor.utils.Utils;
2828
import org.schabi.newpipe.util.ThemeHelper;
2929

30-
import java.io.UnsupportedEncodingException;
31-
3230
/*
3331
* Created by beneth <bmauduit@beneth.fr> on 06.12.16.
3432
*
@@ -190,11 +188,10 @@ private void handleCookiesFromUrl(@Nullable final String url) {
190188
String abuseCookie = url.substring(abuseStart + 13, abuseEnd);
191189
abuseCookie = Utils.decodeUrlUtf8(abuseCookie);
192190
handleCookies(abuseCookie);
193-
} catch (UnsupportedEncodingException | StringIndexOutOfBoundsException e) {
191+
} catch (IllegalArgumentException | StringIndexOutOfBoundsException e) {
194192
if (MainActivity.DEBUG) {
195-
e.printStackTrace();
196-
Log.d(TAG, "handleCookiesFromUrl: invalid google abuse starting at "
197-
+ abuseStart + " and ending at " + abuseEnd + " for url " + url);
193+
Log.e(TAG, "handleCookiesFromUrl: invalid google abuse starting at "
194+
+ abuseStart + " and ending at " + abuseEnd + " for url " + url, e);
198195
}
199196
}
200197
}

app/src/main/java/org/schabi/newpipe/settings/DownloadSettingsFragment.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030

3131
import java.io.File;
3232
import java.io.IOException;
33-
import java.io.UnsupportedEncodingException;
3433
import java.net.URI;
3534

3635
public class DownloadSettingsFragment extends BasePreferenceFragment {
@@ -125,7 +124,7 @@ private void showPathInSummary(final String prefKey, @StringRes final int defaul
125124

126125
try {
127126
rawUri = decodeUrlUtf8(rawUri);
128-
} catch (final UnsupportedEncodingException e) {
127+
} catch (final IllegalArgumentException e) {
129128
// nothing to do
130129
}
131130

0 commit comments

Comments
 (0)