-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use new NewPipe Extractor Utils methods.
- Loading branch information
1 parent
0b0dfd0
commit d693586
Showing
3 changed files
with
6 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,14 +20,14 @@ | |
import androidx.core.app.NavUtils; | ||
import androidx.preference.PreferenceManager; | ||
|
||
import org.schabi.newpipe.databinding.ActivityRecaptchaBinding; | ||
import org.schabi.newpipe.DownloaderImpl; | ||
import org.schabi.newpipe.MainActivity; | ||
import org.schabi.newpipe.R; | ||
import org.schabi.newpipe.databinding.ActivityRecaptchaBinding; | ||
import org.schabi.newpipe.extractor.utils.Utils; | ||
import org.schabi.newpipe.util.ThemeHelper; | ||
|
||
import java.io.UnsupportedEncodingException; | ||
import java.net.URLDecoder; | ||
|
||
/* | ||
* Created by beneth <[email protected]> on 06.12.16. | ||
|
@@ -188,7 +188,7 @@ private void handleCookiesFromUrl(@Nullable final String url) { | |
|
||
try { | ||
String abuseCookie = url.substring(abuseStart + 13, abuseEnd); | ||
abuseCookie = URLDecoder.decode(abuseCookie, "UTF-8"); | ||
abuseCookie = Utils.decodeUrlUtf8(abuseCookie); | ||
handleCookies(abuseCookie); | ||
} catch (UnsupportedEncodingException | StringIndexOutOfBoundsException e) { | ||
if (MainActivity.DEBUG) { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters