-
Notifications
You must be signed in to change notification settings - Fork 425
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
[YouTube] Fix some decryption exceptions by retrying #406
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
...in/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java
Show resolved
Hide resolved
You haz a test apk? |
@opusforlife2 here it is: app-debug.zip |
I have tested this apk and no crashes yet. I will confirm it tomorrow after further use. Thanks |
I tested this apk file and it looks like the issue has been fixed, the app has not been crashing with me and is working fine. I suggest adding the apk file and linking it to issue #3753 so that people who have the same problem can test it. Thanks |
@xibr basically everyone has this problem from time to time ;-) |
Branch name is missing in the package ID. Can the extractor branches be read by the build.gradle of the other repo? |
@Stypox You're right, for me this apk fixed the problem. Because I can reproduce the problem on Release version 0.20.0 |
...in/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java
Outdated
Show resolved
Hide resolved
...in/java/org/schabi/newpipe/extractor/services/youtube/extractors/YoutubeStreamExtractor.java
Outdated
Show resolved
Hide resolved
Yay! |
By looking at the HAR from TeamNewPipe/NewPipe#3753 (comment) it seems like YouTube sometimes does not provide the player config object even though it should. In that case the extractor would crash, since it didn't have the needed information to decrypt the signatures. Therefore this PR detects when there is no player config object, and in that case runs the same request again, with at most 3 attempts. This should drastically reduce the number of exceptions caused by YouTube not providing the needed information (e.g. if the probability was 1% before, now it should be 0.0001%. Small, isn't it? ;-) ).
Closes TeamNewPipe/NewPipe#3753