NewPipeExtractor icon indicating copy to clipboard operation
NewPipeExtractor copied to clipboard

[YouTube] Could not find signature deobfuscation function

Open gechoto opened this issue 9 months ago • 4 comments

Checklist

  • [x] I am able to reproduce the bug with the latest version given here: CLICK THIS LINK.
  • [x] I am aware that this issue is being opened for the NewPipe Extractor, NOT the app, and my bug report will be dismissed otherwise.
  • [x] I made sure that there are no existing issues - open or closed - which I could contribute my information to.
  • [x] I have taken the time to fill in all the required details. I understand that the bug report will be dismissed otherwise.
  • [x] This issue contains only one bug.
  • [x] I have read and understood the contribution guidelines.

Affected version

v0.24.5

Steps to reproduce the bug

call YoutubeJavaScriptPlayerManager.deobfuscateSignature

Expected behavior

return the deobfuscated signature

Actual behavior

throws ParsingException

Screenshots/Screen recordings

No response

Logs

org.schabi.newpipe.extractor.exceptions.ParsingException: Could not parse deobfuscation function
	at org.schabi.newpipe.extractor.services.youtube.YoutubeSignatureUtils.getDeobfuscationCode(YoutubeSignatureUtils.java:102)
	at org.schabi.newpipe.extractor.services.youtube.YoutubeJavaScriptPlayerManager.deobfuscateSignature(YoutubeJavaScriptPlayerManager.java:145)
	...
Caused by: org.schabi.newpipe.extractor.exceptions.ParsingException: Could not find deobfuscation function with any of the known patterns
	at org.schabi.newpipe.extractor.services.youtube.YoutubeSignatureUtils.getDeobfuscationFunctionName(YoutubeSignatureUtils.java:112)
	at org.schabi.newpipe.extractor.services.youtube.YoutubeSignatureUtils.getDeobfuscationCode(YoutubeSignatureUtils.java:75)
	...
Caused by: org.schabi.newpipe.extractor.utils.Parser$RegexException: Failed to find pattern "\bm=([a-zA-Z0-9$]{2,})\(decodeURIComponent\(h\.s\)\)"
	at org.schabi.newpipe.extractor.utils.Parser.matchMultiplePatterns(Parser.java:96)
	at org.schabi.newpipe.extractor.utils.Parser.matchGroup1MultiplePatterns(Parser.java:83)
	at org.schabi.newpipe.extractor.services.youtube.YoutubeSignatureUtils.getDeobfuscationFunctionName(YoutubeSignatureUtils.java:110)
	...

Additional information

No response

gechoto avatar Mar 25 '25 12:03 gechoto

looking forward for fix. thx

nonnogatto avatar Mar 25 '25 12:03 nonnogatto

When wil the issue fix?

Eddgutierrez93 avatar Mar 28 '25 13:03 Eddgutierrez93

When wil the issue fix?

PRs are welcome.

ShareASmile avatar Mar 28 '25 15:03 ShareASmile

Please use this regex \b(?<var>[a-zA-Z0-9_$]+)&&\(\k<var>=(?<sig>[a-zA-Z0-9_$]{2,})\(decodeURIComponent\(\k<var>\)\)

maxrave-dev avatar Mar 30 '25 13:03 maxrave-dev