-
-
Notifications
You must be signed in to change notification settings - Fork 484
Support new YouTube JSON scheme #441
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
Conversation
28fc20c
to
309a42f
Compare
Yay! |
^ 4572, not 4752. |
I have tested this changes and I got this error Edit: For some videos, when you try again, the error does not appear. |
Maybe try both patterns twice before moving on just to be safe? |
309a42f
to
a7d64eb
Compare
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.
This isn't a proper fix, it only replaces the "retry multiple times" code with "try a different way", both of which are workarounds. I'll try to see if there is another way to really fix this
@xibr I did some tests. I could reproduce your issue twice time in 300 tries. Before this patch, it's about 15 in 100 tries (BUT each exception try is already 3 tries, then more like 45-60 failed attempts out of 100) (with the same video though). @Stypox @opusforlife2 So what I did is try to get info some missing info with new file from embed. It seemed to work everytime (yesterday), but actually I did not test enough, thank you @xibr. It's way more reliable as I said before, but yeah it's not a proper fix, and 1 / 600 is still way too much. Here is what it tries to find pattern when it fails / when it is normal |
@B0pol the player url is there inside the fail html: |
I think this can be solved completely by caching the player url or even the deobfuscation code. I was able to use the player url from your HTMLs (it's the same in both of them: |
Here is an APK with a hardcoded player js URL. For me it works perfectly. Obviously the URL probably will change over time, but just as a check I'm uploading this APK. @opusforlife2 does this also work in India, where YouTube might be doing things differently than in Europe? @xibr could you also test? |
Werks ^. And it is indeed faster. :D |
Yep, can confirm it works in India :) |
@FireMasterK Oh wow. I just noticed you're the one hosting that new Invidious instance I use. Thanks for that. ;) |
I pushed a fixed for
New debug APK: TeamNewPipe/NewPipe#4675 (comment) |
I was getting |
Having the exact same problem here, now using the temporary APK. |
Exception
Crash log
Edit: just one time. |
Works fine so far. |
I just installed the debug build. and even restored settings from stable one. Hereby I confirm it's working fine. Thanks a lot. |
I have tested two apk files provided by @ Stypox and @ B0pol and it works fine no errors yet shown. There is one file error provided by @ B0pol but it never appears again after removing cache. |
I got this error randomly on B0pol's build, I'm not sure if it's related to this tho. Exception
Crash log
|
@xibr Could not reproduce the issue (I tried 100 times). If you can reproduce, please provide a HAR file @FireMasterK it's not related, we already know this issue |
@B0pol Well, so far I can't reproduce, if I can reproduce I will attach a HAR file. This fix works fine. |
Can confirm this fixes all the issues with the current release. S10+ LOS 17.1 |
It's work for me, I tested on Nexus 6P with Android 7.1.1, from Taiwan. |
7d50f40
to
6dc5ab4
Compare
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.
Not perfect, but perfectly valid for a hotfix. Thank you!
fixes TeamNewPipe/NewPipe#4572 fixes #439
@Stypox @TobiGr