-
Notifications
You must be signed in to change notification settings - Fork 439
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
Pass additional regexes to youtube extractor #297
Conversation
Thank you. Is there a reason why @nik-vanderveen creates a PR from @CWftw's repo? |
I am CWftw and I approve this message (and this PR) |
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.
You could
- rename
decryptionFuncNameRegexes
tohardCodedDecryptionFuncNameRegexes
- rename
allRegexes
todecryptionFuncNameRegexes
- add a JDoc comment to the new constructor for YoutubeService and state, that additionalRegexes is thought to provide more regexes for
private String getDecryptionFuncName(String playerCode) throws DecryptException
.
But before you do this, I'd like to hear @wb9688's or/and @Stypox's opinion on this
7d292e1
to
c2f27e7
Compare
It has both a benefits and downsides: I'm totally for this possibility. |
83fcd73
to
9038ea8
Compare
Have you guys discussed how this should be presented to the user? My instinct as a user is to basically have a tappable option in settings to download additional regexes which you could host on the Newpipe website. All it would do is present a toast whether the download succeeded or failed, and people should see their videos opening again. Where the downloaded file goes is inconsequential to the end user, though it should probably be part of the app's internal storage so that even if a user doesn't grant storage permission to Newpipe, the functionality doesn't break. |
I'm closing this for now:
Feel free to reopen when there is progress again |
Adds support for passing additional regexes (from file, server, etc.) through youtube's extractor in order to fix extraction errors without an update. Closes #255