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

"Video not available" / "Could not decrypt video URL" #2981

Closed
CrimsonFork opened this issue Jan 23, 2020 · 33 comments
Closed

"Video not available" / "Could not decrypt video URL" #2981

CrimsonFork opened this issue Jan 23, 2020 · 33 comments
Labels
ASAP Issue needs to be fixed as soon as possible bug Issue is related to a bug youtube Service, https://www.youtube.com/

Comments

@CrimsonFork
Copy link

https://www.youtube.com/watch?v=hAsZCTL__lo

This video causes problems for some reason, even though it is very well available on the normal site and regularly there are no problems.

@CrimsonFork
Copy link
Author

Ok so I didn't do anything and now it works. Btw I did restart and try it multiple times before.

@impreza233

This comment has been minimized.

@B0pol
Copy link
Member

B0pol commented Jan 23, 2020

It happens now on every YouTube videos to me.
I can't use Crash report to markdown:
Cannot convert bug report to Markdown: Failed to parse JSON due to syntax error: JSON.parse: bad character in string literal at line 11 column 3117 of the JSON data

plain text crash report:

Crash error

{ "user_action": "requested stream", "request": "https:\/\/www.youtube.com\/watch?v=tV4OVJd_ddI", "content_language": "GB", "service": "YouTube", "package": "org.schabi.newpipe", "version": "0.18.0", "os": "Linux Android 8.1.0 - 27", "time": "2020-01-23 19:31", "exceptions": [ "org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor$DecryptException: Could not parse decrypt function \n\tat org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.loadDecryptionCode(YoutubeStreamExtractor.java:849)\n\tat org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.onFetchPage(YoutubeStreamExtractor.java:716)\n\tat org.schabi.newpipe.extractor.Extractor.fetchPage(Extractor.java:54)\n\tat org.schabi.newpipe.extractor.stream.StreamInfo.getInfo(StreamInfo.java:64)\n\tat org.schabi.newpipe.extractor.stream.StreamInfo.getInfo(StreamInfo.java:60)\n\tat org.schabi.newpipe.util.ExtractorHelper.lambda$getStreamInfo$3(ExtractorHelper.java:115)\n\tat org.schabi.newpipe.util.-$$Lambda$ExtractorHelper$5fJcha6Sq5APJBLdG6osaJby-mc.call(Unknown Source:4)\n\tat io.reactivex.internal.operators.single.SingleFromCallable.subscribeActual(SingleFromCallable.java:44)\n\tat io.reactivex.Single.subscribe(Single.java:3438)\n\tat io.reactivex.internal.operators.single.SingleDoOnSuccess.subscribeActual(SingleDoOnSuccess.java:35)\n\tat io.reactivex.Single.subscribe(Single.java:3438)\n\tat io.reactivex.internal.operators.maybe.MaybeFromSingle.subscribeActual(MaybeFromSingle.java:41)\n\tat io.reactivex.Maybe.subscribe(Maybe.java:4154)\n\tat io.reactivex.internal.operators.maybe.MaybeConcatArray$ConcatMaybeObserver.drain(MaybeConcatArray.java:153)\n\tat io.reactivex.internal.operators.maybe.MaybeConcatArray$ConcatMaybeObserver.request(MaybeConcatArray.java:78)\n\tat io.reactivex.internal.operators.flowable.FlowableElementAtMaybe$ElementAtSubscriber.onSubscribe(FlowableElementAtMaybe.java:66)\n\tat io.reactivex.internal.operators.maybe.MaybeConcatArray.subscribeActual(MaybeConcatArray.java:42)\n\tat io.reactivex.Flowable.subscribe(Flowable.java:14479)\n\tat io.reactivex.internal.operators.flowable.FlowableElementAtMaybe.subscribeActual(FlowableElementAtMaybe.java:36)\n\tat io.reactivex.Maybe.subscribe(Maybe.java:4154)\n\tat io.reactivex.internal.operators.maybe.MaybeToSingle.subscribeActual(MaybeToSingle.java:46)\n\tat io.reactivex.Single.subscribe(Single.java:3438)\n\tat io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(SingleSubscribeOn.java:89)\n\tat io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)\n\tat io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)\n\tat io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1162)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:636)\n\tat java.lang.Thread.run(Thread.java:764)\nCaused by: org.schabi.newpipe.extractor.utils.Parser$RegexException: failed to find pattern \";([A-Za-z0-9_\\$]{2})\\...\\( inside of var lea=function(a){a=a.split(\"\");var b=[function(c,d){d=(d� length+c.length)� length;c.splice(-d).reverse().forEach(function(e){return c.unshift(e)};\"\n\tat org.schabi.newpipe.extractor.utils.Parser.matchGroup(Parser.java:73)\n\tat org.schabi.newpipe.extractor.utils.Parser.matchGroup(Parser.java:61)\n\tat org.schabi.newpipe.extractor.utils.Parser.matchGroup1(Parser.java:52)\n\tat org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.loadDecryptionCode(YoutubeStreamExtractor.java:836)\n\t... 30 more\n" ], "user_comment": "" }

@CrimsonFork

This comment has been minimized.

@H4ffliger

This comment has been minimized.

@lu4p
Copy link

lu4p commented Jan 23, 2020

same Here in every Video

{
   "user_action": "requested stream",
   "request": "https:\/\/www.youtube.com\/watch?v=hAsZCTL__lo",
   "content_language": "DE",
   "service": "YouTube",
   "package": "org.schabi.newpipe",
   "version": "0.18.1",
   "os": "Linux Android 9 - 28",
   "time": "2020-01-23 19:51",
   "exceptions": [
      "org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor$DecryptException: Could not parse decrypt function \n\tat org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.loadDecryptionCode(YoutubeStreamExtractor.java:849)\n\tat org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.onFetchPage(YoutubeStreamExtractor.java:716)\n\tat org.schabi.newpipe.extractor.Extractor.fetchPage(Extractor.java:54)\n\tat org.schabi.newpipe.extractor.stream.StreamInfo.getInfo(StreamInfo.java:64)\n\tat org.schabi.newpipe.extractor.stream.StreamInfo.getInfo(StreamInfo.java:60)\n\tat org.schabi.newpipe.util.ExtractorHelper.lambda$getStreamInfo$3(ExtractorHelper.java:115)\n\tat org.schabi.newpipe.util.-$$Lambda$ExtractorHelper$5fJcha6Sq5APJBLdG6osaJby-mc.call(Unknown Source:4)\n\tat io.reactivex.internal.operators.single.SingleFromCallable.subscribeActual(SingleFromCallable.java:44)\n\tat io.reactivex.Single.subscribe(Single.java:3438)\n\tat io.reactivex.internal.operators.single.SingleDoOnSuccess.subscribeActual(SingleDoOnSuccess.java:35)\n\tat io.reactivex.Single.subscribe(Single.java:3438)\n\tat io.reactivex.internal.operators.maybe.MaybeFromSingle.subscribeActual(MaybeFromSingle.java:41)\n\tat io.reactivex.Maybe.subscribe(Maybe.java:4154)\n\tat io.reactivex.internal.operators.maybe.MaybeConcatArray$ConcatMaybeObserver.drain(MaybeConcatArray.java:153)\n\tat io.reactivex.internal.operators.maybe.MaybeConcatArray$ConcatMaybeObserver.request(MaybeConcatArray.java:78)\n\tat io.reactivex.internal.operators.flowable.FlowableElementAtMaybe$ElementAtSubscriber.onSubscribe(FlowableElementAtMaybe.java:66)\n\tat io.reactivex.internal.operators.maybe.MaybeConcatArray.subscribeActual(MaybeConcatArray.java:42)\n\tat io.reactivex.Flowable.subscribe(Flowable.java:14479)\n\tat io.reactivex.internal.operators.flowable.FlowableElementAtMaybe.subscribeActual(FlowableElementAtMaybe.java:36)\n\tat io.reactivex.Maybe.subscribe(Maybe.java:4154)\n\tat io.reactivex.internal.operators.maybe.MaybeToSingle.subscribeActual(MaybeToSingle.java:46)\n\tat io.reactivex.Single.subscribe(Single.java:3438)\n\tat io.reactivex.internal.operators.single.SingleSubscribeOn$SubscribeOnObserver.run(SingleSubscribeOn.java:89)\n\tat io.reactivex.Scheduler$DisposeTask.run(Scheduler.java:578)\n\tat io.reactivex.internal.schedulers.ScheduledRunnable.run(ScheduledRunnable.java:66)\n\tat io.reactivex.internal.schedulers.ScheduledRunnable.call(ScheduledRunnable.java:57)\n\tat java.util.concurrent.FutureTask.run(FutureTask.java:266)\n\tat java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:301)\n\tat java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)\n\tat java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)\n\tat java.lang.Thread.run(Thread.java:764)\nCaused by: org.schabi.newpipe.extractor.utils.Parser$RegexException: failed to find pattern \";([A-Za-z0-9_\\$]{2})\\...\\( inside of var lea=function(a){a=a.split(\"\");var b=[function(c,d){d=(d%c.length+c.length)%c.length;c.splice(-d).reverse().forEach(function(e){return c.unshift(e)};\"\n\tat org.schabi.newpipe.extractor.utils.Parser.matchGroup(Parser.java:73)\n\tat org.schabi.newpipe.extractor.utils.Parser.matchGroup(Parser.java:61)\n\tat org.schabi.newpipe.extractor.utils.Parser.matchGroup1(Parser.java:52)\n\tat org.schabi.newpipe.extractor.services.youtube.extractors.YoutubeStreamExtractor.loadDecryptionCode(YoutubeStreamExtractor.java:836)\n\t... 30 more\n"
   ],
   "user_comment": ""
}

@njmdietrich

This comment has been minimized.

@gcandrade10

This comment has been minimized.

@TobiGr TobiGr added ASAP Issue needs to be fixed as soon as possible bug Issue is related to a bug youtube Service, https://www.youtube.com/ labels Jan 23, 2020
@Sirix1995

This comment has been minimized.

@TobiGr
Copy link
Member

TobiGr commented Jan 23, 2020

Please stop posting same here etc.
I am on it. It seems like they changed the complete json handling.

@Pentaphon
Copy link

Pentaphon commented Jan 23, 2020

Please stop posting same here etc.

You guys should sticky this. We are going to get a ton of duplicate issues.

@TobiGr TobiGr pinned this issue Jan 23, 2020
@TobiGr TobiGr changed the title "Video not available" on one specific video "Video not available" due to missing changed player JSON Jan 23, 2020
@kubo6472
Copy link

Didn't this happen already? What about the updated NewPipeExtractor, or is it completely new system. If yes, then await a rollback, or message Omar @Invidious if they fixed it.

@kastixx
Copy link

kastixx commented Jan 23, 2020

Looks like it can be fixed by adding one more extractor regexp: ytdl-org/youtube-dl@c3cfea9

@seniorm0ment
Copy link

Same issue, I'm using the F-Droid release. I'm curious how this broke? F-Droid didn't update anything, so not sure why anything would have changed with Newpipe? Getting the issue on every video though.

@nat16ishere

This comment has been minimized.

@TobiGr
Copy link
Member

TobiGr commented Jan 24, 2020

'\b(?P<sig>[a-zA-Z0-9$]{2})\s*=\s*function\(\s*a\s*\)\s*{\s*a\s*=\s*a\.split\(\s*""\s*\)'

Adopting the Python Regex into the Java extractor seems to be more difficult than i I thought.
It should be added here and here. However, the regex does not work for me. Can someone help me with that?

@TobiGr TobiGr changed the title "Video not available" due to missing changed player JSON "Video not available" / "Could not decrypt video URL" Jan 24, 2020
@71walceli

This comment has been minimized.

@TobiGr
Copy link
Member

TobiGr commented Jan 24, 2020

@stvpn Thanks. That works 🎉 I'll try to get the new version out tonight.

@TobiGr TobiGr closed this as completed Jan 24, 2020
@drji3m
Copy link

drji3m commented Jan 24, 2020

Mine broke between videos at about 3pm east us. No change in app. Thanks for you work.

@TheAssassin
Copy link
Member

The new release has been uploaded to GitHub. Thanks @TobiGr for fixing this in such a short time!

@Acelya-9028
Copy link

Thank you @TobiGr 🥰

@jts105
Copy link

jts105 commented Jan 24, 2020

It's still not working.

@VGkav
Copy link

VGkav commented Jan 24, 2020

Works on the first video I tried, thanks!

@11fen
Copy link

11fen commented Jan 24, 2020

It's still not working.
Screenshot_20200124-105026

@TheAssassin
Copy link
Member

Check your screenshot, you're on the old version @11fen...

@11fen
Copy link

11fen commented Jan 24, 2020

All uninstalled and reinstalled but no longer working

@wangxu94
Copy link

The fix was in v0.18.2. That has been released here on Github, but has not been pushed to fdroid yet.

@xiaofu2024
Copy link

thanks for million! waitting for push to fdroid so that I can use v0.18.2

@11fen
Copy link

11fen commented Jan 24, 2020

.

thanks

@rogerval
Copy link

Works for my device, too. Thanks guys!
(Couldn't install the fresh apk file until I realised that I had to uninstall the version I obtained via F-droid first... oops! :-) )

@TheAssassin
Copy link
Member

@rogerval that's hopefully going to be fixed with #1981.

Locking this thread to avoid further spam. It's great that works for you again, I think that's been established.

If you have further issues, please open a new issue. You can also ask first in our IRC chat #newpipe on Freenode, often issues can be sorted out there.

@TeamNewPipe TeamNewPipe locked as resolved and limited conversation to collaborators Jan 24, 2020
@TobiGr TobiGr unpinned this issue Feb 1, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
ASAP Issue needs to be fixed as soon as possible bug Issue is related to a bug youtube Service, https://www.youtube.com/
Projects
None yet
Development

No branches or pull requests