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

Fix signature extraction parse exception #108

Merged
merged 1 commit into from Sep 7, 2018

Conversation

karyogamy
Copy link
Contributor

Copy of fix PR on youtube-dl because of I'm too dumb to figure out a solution and decided to wait it out =P

The stream extraction tests are now passing.

Credits and many thanks to @Khang-NT.

@ghost
Copy link

ghost commented Sep 7, 2018

Looks OK to me. Can we release soon after this is merged? (And can F-Droid please be fast for once? )

@karyogamy
Copy link
Contributor Author

Yeah, we should release ASAP. Though the solution is probably temporary and can be easily patched. We might need to find a better way to match this soon.

@theScrabi theScrabi merged commit 119843b into TeamNewPipe:master Sep 7, 2018
Parser.matchGroup("([\"\\'])signature\\1\\s*,\\s*([a-zA-Z0-9$]+)\\(", playerCode, 2);
decryptionFuncName = Parser.matchGroup(
// Look for a function with the first line containing pattern of: [var]=[var].split("")
"(\\w+)\\s*=\\s*function\\((\\w+)\\)\\{\\s*\\2=\\s*\\2\\.split\\(\"\"\\)\\s*;",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this the solution form youtube-dl?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's from a PR, which is not merged yet.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see.

@avently
Copy link

avently commented Sep 8, 2018

After extractor failed to decrypt a stream I went on NewPipe git and found this PR and patched local extractor lib. That's insane that you don't have normal embed player one year later:)
I'm sorry, guys, it was painful year for you...

@The-Demon-Prosecutor
Copy link

Hi @karyogamy, youtube-dl has now merged another regex pattern which works as well. Thought you would be interested to know. It can be found in their latest release or alternatively here.

@karyogamy
Copy link
Contributor Author

@The-Demon-Prosecutor Thanks, I've created a new PR with the update. See #109.

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

Successfully merging this pull request may close these issues.

None yet

5 participants