Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CRITICAL]Change in HTML on "KOMENTARZE" section #8

Closed
GHRik opened this issue Aug 16, 2022 · 0 comments
Closed

[CRITICAL]Change in HTML on "KOMENTARZE" section #8

GHRik opened this issue Aug 16, 2022 · 0 comments

Comments

@GHRik
Copy link
Owner

GHRik commented Aug 16, 2022

SjpApi does not work cause of change in "KOMENTARZE" section:

    Process: com.example.PomocnaLiterka, PID: 27428
    java.lang.StringIndexOutOfBoundsException: String index out of range: -6390
        at java.lang.String.substring(String.java:2064)
        at com.sjp.StringUtils.substringBettwen(StringUtils.java:89)
        at com.sjp.CurlWrapper.getBettwenH1AndCommentSection(CurlWrapper.java:15)
        at com.sjp.CurlHelper.getOutputFromCurl(CurlHelper.java:21)
        at com.sjp.SjpAPI.getWord(SjpAPI.java:13)
        at com.example.PomocnaLiterka.ArbiterActivity.lambda$onCreate$1$com-example-PomocnaLiterka-ArbiterActivity(ArbiterActivity.java:69)
        at com.example.PomocnaLiterka.ArbiterActivity$$ExternalSyntheticLambda0.onClick(Unknown Source:8)
        at android.view.View.performClick(View.java:7450)
        at com.google.android.material.button.MaterialButton.performClick(MaterialButton.java:1194)
        at android.view.View.performClickInternal(View.java:7418)
        at android.view.View.access$3700(View.java:835)
        at android.view.View$PerformClick.run(View.java:28689)
        at android.os.Handler.handleCallback(Handler.java:938)
        at android.os.Handler.dispatchMessage(Handler.java:99)
        at android.os.Looper.loopOnce(Looper.java:201)
        at android.os.Looper.loop(Looper.java:288)
        at android.app.ActivityThread.main(ActivityThread.java:7879)
        at java.lang.reflect.Method.invoke(Native Method)
        at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1009)
GHRik pushed a commit that referenced this issue Aug 16, 2022
Cause of change on sjp.pl in "KOMENTARZE"
section. CurlWrapper is not needed any more.

Close-Issue: #8
@GHRik GHRik closed this as completed Aug 16, 2022
GHRik pushed a commit that referenced this issue Aug 16, 2022
GHRik pushed a commit that referenced this issue Aug 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant