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

Pass additional regexes to youtube extractor #297

Closed
wants to merge 1 commit into from

Conversation

nik-vanderveen
Copy link

  • I carefully read the contribution guidelines and agree to them.
  • I did test the API against NewPipe.
  • I agree to ASAP create a PULL request for NewPipe for making in compatible when I changed the api.

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

@nik-vanderveen nik-vanderveen changed the title Adds additional regexes to youtube extractor Pass additional regexes to youtube extractor Mar 25, 2020
@TobiGr
Copy link
Contributor

TobiGr commented Mar 25, 2020

Thank you. Is there a reason why @nik-vanderveen creates a PR from @CWftw's repo?

@TobiGr TobiGr added the youtube service, https://www.youtube.com/ label Mar 25, 2020
@CWftw
Copy link

CWftw commented Mar 26, 2020

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)

@CWftw CWftw force-pushed the additonalRegexes branch from 61654f7 to b05ceec Compare March 27, 2020 17:39
@CWftw CWftw force-pushed the additonalRegexes branch from b05ceec to d1a90d6 Compare April 23, 2020 15:41
Copy link
Contributor

@TobiGr TobiGr left a 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 to hardCodedDecryptionFuncNameRegexes
  • rename allRegexes to decryptionFuncNameRegexes
  • 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

@CWftw CWftw force-pushed the additonalRegexes branch 2 times, most recently from 7d292e1 to c2f27e7 Compare May 9, 2020 18:40
@B0pol B0pol added the enhancement New feature or request label May 9, 2020
@B0pol
Copy link
Member

B0pol commented May 9, 2020

It has both a benefits and downsides:
👌 people will be able to add the regex found somewhere in settings, as a workaround before update when youtube has broken something
👍 less people would leave NewPipe due to it being broken
👎 people will be able to stay on an old version, without the other bug fixes…

I'm totally for this possibility.

@CWftw CWftw force-pushed the additonalRegexes branch 3 times, most recently from 83fcd73 to 9038ea8 Compare May 30, 2020 21:44
@opusforlife2
Copy link
Collaborator

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.

@litetex
Copy link
Member

litetex commented Oct 3, 2021

I'm closing this for now:

Feel free to reopen when there is progress again

@litetex litetex closed this Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request youtube service, https://www.youtube.com/
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Allow additional regexes to be passed to YouTubeStreamExtractor
6 participants