mirror of
https://github.com/TeamNewPipe/NewPipe.git
synced 2024-11-25 04:22:30 +01:00
Update NewPipeExtractor to v0.24.2
This commit is contained in:
parent
0f64158469
commit
947ac2826a
@ -198,7 +198,7 @@ dependencies {
|
|||||||
// name and the commit hash with the commit hash of the (pushed) commit you want to test
|
// name and the commit hash with the commit hash of the (pushed) commit you want to test
|
||||||
// This works thanks to JitPack: https://jitpack.io/
|
// This works thanks to JitPack: https://jitpack.io/
|
||||||
implementation 'com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751'
|
implementation 'com.github.TeamNewPipe:nanojson:1d9e1aea9049fc9f85e68b43ba39fe7be1c1f751'
|
||||||
implementation 'com.github.TeamNewPipe:NewPipeExtractor:v0.24.1'
|
implementation 'com.github.TeamNewPipe:NewPipeExtractor:v0.24.2'
|
||||||
implementation 'com.github.TeamNewPipe:NoNonsense-FilePicker:5.0.0'
|
implementation 'com.github.TeamNewPipe:NoNonsense-FilePicker:5.0.0'
|
||||||
|
|
||||||
/** Checkstyle **/
|
/** Checkstyle **/
|
||||||
|
@ -27,8 +27,6 @@ import org.schabi.newpipe.databinding.ActivityRecaptchaBinding;
|
|||||||
import org.schabi.newpipe.extractor.utils.Utils;
|
import org.schabi.newpipe.extractor.utils.Utils;
|
||||||
import org.schabi.newpipe.util.ThemeHelper;
|
import org.schabi.newpipe.util.ThemeHelper;
|
||||||
|
|
||||||
import java.io.UnsupportedEncodingException;
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Created by beneth <bmauduit@beneth.fr> on 06.12.16.
|
* Created by beneth <bmauduit@beneth.fr> on 06.12.16.
|
||||||
*
|
*
|
||||||
@ -190,11 +188,10 @@ public class ReCaptchaActivity extends AppCompatActivity {
|
|||||||
String abuseCookie = url.substring(abuseStart + 13, abuseEnd);
|
String abuseCookie = url.substring(abuseStart + 13, abuseEnd);
|
||||||
abuseCookie = Utils.decodeUrlUtf8(abuseCookie);
|
abuseCookie = Utils.decodeUrlUtf8(abuseCookie);
|
||||||
handleCookies(abuseCookie);
|
handleCookies(abuseCookie);
|
||||||
} catch (UnsupportedEncodingException | StringIndexOutOfBoundsException e) {
|
} catch (IllegalArgumentException | StringIndexOutOfBoundsException e) {
|
||||||
if (MainActivity.DEBUG) {
|
if (MainActivity.DEBUG) {
|
||||||
e.printStackTrace();
|
Log.e(TAG, "handleCookiesFromUrl: invalid google abuse starting at "
|
||||||
Log.d(TAG, "handleCookiesFromUrl: invalid google abuse starting at "
|
+ abuseStart + " and ending at " + abuseEnd + " for url " + url, e);
|
||||||
+ abuseStart + " and ending at " + abuseEnd + " for url " + url);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,7 +30,6 @@ import org.schabi.newpipe.util.FilePickerActivityHelper;
|
|||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.UnsupportedEncodingException;
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
|
|
||||||
public class DownloadSettingsFragment extends BasePreferenceFragment {
|
public class DownloadSettingsFragment extends BasePreferenceFragment {
|
||||||
@ -125,7 +124,7 @@ public class DownloadSettingsFragment extends BasePreferenceFragment {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
rawUri = decodeUrlUtf8(rawUri);
|
rawUri = decodeUrlUtf8(rawUri);
|
||||||
} catch (final UnsupportedEncodingException e) {
|
} catch (final IllegalArgumentException e) {
|
||||||
// nothing to do
|
// nothing to do
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user