forked from TeamNewPipe/NewPipe
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BraveNewPipeLegacy: Adjust due to NewPipeExtractor v0.24.2 update
- Loading branch information
1 parent
ec1c1a2
commit 4a29ea2
Showing
2 changed files
with
4 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,8 +28,6 @@ | |
import org.schabi.newpipe.extractor.utils.Utils; | ||
import org.schabi.newpipe.util.ThemeHelper; | ||
|
||
import java.io.UnsupportedEncodingException; | ||
|
||
/* | ||
* Created by beneth <[email protected]> on 06.12.16. | ||
* | ||
|
@@ -196,11 +194,10 @@ private void handleCookiesFromUrl(@Nullable final String url) { | |
String abuseCookie = url.substring(abuseStart + 13, abuseEnd); | ||
abuseCookie = Utils.decodeUrlUtf8(abuseCookie); | ||
handleCookies(abuseCookie); | ||
} catch (UnsupportedEncodingException | StringIndexOutOfBoundsException e) { | ||
} catch (IllegalArgumentException | StringIndexOutOfBoundsException e) { | ||
if (MainActivity.DEBUG) { | ||
e.printStackTrace(); | ||
Log.d(TAG, "handleCookiesFromUrl: invalid google abuse starting at " | ||
+ abuseStart + " and ending at " + abuseEnd + " for url " + url); | ||
Log.e(TAG, "handleCookiesFromUrl: invalid google abuse starting at " | ||
+ abuseStart + " and ending at " + abuseEnd + " for url " + url, e); | ||
} | ||
} | ||
} | ||
|
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