Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

all videos from youtube not working #218

Open
kyrellous opened this issue Feb 10, 2022 · 9 comments
Open

all videos from youtube not working #218

kyrellous opened this issue Feb 10, 2022 · 9 comments

Comments

@kyrellous
Copy link

kyrellous commented Feb 10, 2022

videos came to an error
"D/extractor : response not found"

@kyrellous kyrellous changed the title all videos from youtube all videos from youtube not working Feb 10, 2022
@candratop3
Copy link

same here...new browser

youTubeExtractor: Extraction failed

private static final String USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.98 Safari/537.36";

@Demerro
Copy link

Demerro commented Feb 14, 2022

That because it trying to open modified by extractor link, for example

https://www.youtube.com/get_video_info?video_id=8MLa-Lh8lkU&eurl=https%3A%2F%2Fyoutube.googleapis.com%2Fv%2F8MLa-Lh8lkU

And the page is not available. I guess youtube changed something.

Stack trace:

W/System.err: java.io.FileNotFoundException: https://www.youtube.com/get_video_info?video_id=8MLa-Lh8lkU&eurl=https%3A%2F%2Fyoutube.googleapis.com%2Fv%2F8MLa-Lh8lkU
at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:255)
at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:211)
at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:30)
at at.huber.youtubeExtractor.YouTubeExtractor.getStreamUrls(YouTubeExtractor.java:219)
at at.huber.youtubeExtractor.YouTubeExtractor.doInBackground(YouTubeExtractor.java:195)
W/System.err: at at.huber.youtubeExtractor.YouTubeExtractor.doInBackground(YouTubeExtractor.java:34)
at android.os.AsyncTask$3.call(AsyncTask.java:394)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)

@Vishal-beep136
Copy link

Same to Same I'm also facing this issues

@JMerchanFL
Copy link

Hi,

I've changed line 61 and updated Chrome version to 99.0.4844.51 now it works perfectly.

Greetings.

@TaslimOseni
Copy link

TaslimOseni commented Mar 19, 2022

@JMerchanFL, what is line 61? I'm currently facing this issue. This is an example of a URL that is giving the said exception.

My conjecture is that YouTube definitely changed something.

@JMerchanFL
Copy link

This one:

private static final String USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.98 Safari/537.36";

@JosiYosi
Copy link

JosiYosi commented Apr 9, 2022

That because it trying to open modified by extractor link, for example

https://www.youtube.com/get_video_info?video_id=8MLa-Lh8lkU&eurl=https%3A%2F%2Fyoutube.googleapis.com%2Fv%2F8MLa-Lh8lkU

And the page is not available. I guess youtube changed something.

Stack trace:

W/System.err: java.io.FileNotFoundException: https://www.youtube.com/get_video_info?video_id=8MLa-Lh8lkU&eurl=https%3A%2F%2Fyoutube.googleapis.com%2Fv%2F8MLa-Lh8lkU at com.android.okhttp.internal.huc.HttpURLConnectionImpl.getInputStream(HttpURLConnectionImpl.java:255) at com.android.okhttp.internal.huc.DelegatingHttpsURLConnection.getInputStream(DelegatingHttpsURLConnection.java:211) at com.android.okhttp.internal.huc.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:30) at at.huber.youtubeExtractor.YouTubeExtractor.getStreamUrls(YouTubeExtractor.java:219) at at.huber.youtubeExtractor.YouTubeExtractor.doInBackground(YouTubeExtractor.java:195) W/System.err: at at.huber.youtubeExtractor.YouTubeExtractor.doInBackground(YouTubeExtractor.java:34) at android.os.AsyncTask$3.call(AsyncTask.java:394) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:305) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641) at java.lang.Thread.run(Thread.java:923)

Yes, they updated Chrome to a new version. That is why this error shows. Do the following in YoutubeExtractor java class

Old one:
private static final String USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36";

Change to a new one:

private static final String USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.98 Safari/537.36";

Basically as you can see, Chrome is updated to Chrome/97.0.4692.98. Safari is not changed yet.

@JosiYosi
Copy link

JosiYosi commented Apr 9, 2022

videos came to an error "D/extractor : response not found"

Old one:
private static final String USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/40.0.2214.115 Safari/537.36";
Change to a new one:

private static final String USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.98 Safari/537.36";

Basically as you can see, Chrome is updated to Chrome/97.0.4692.98. Safari is not changed yet.

@lukaskris
Copy link

it not works now

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants