android-youtubeExtractor icon indicating copy to clipboard operation
android-youtubeExtractor copied to clipboard

Video cannot be extracted since 1/24

Open JmyW opened this issue 4 years ago • 15 comments

The 2.0.0 was released 5 days ago, it worked perfect. But start from today 1/24, Youtube changed again. Many of videos can be no longer extracted. :-(

JmyW avatar Jan 24 '20 07:01 JmyW

For example: https://www.youtube.com/watch?v=eNt78mQJavY https://www.youtube.com/watch?v=AgFeZr5ptV8 https://www.youtube.com/watch?v=-CwoylxqVPA

JmyW avatar Jan 24 '20 15:01 JmyW

Is anyone suffering the same issue?

JmyW avatar Jan 24 '20 17:01 JmyW

Is anyone suffering the same issue?

Screenshot_٢٠٢٠٠١٢٤-٢١٥٣٤٣_YouTube Download

xibr avatar Jan 24 '20 17:01 xibr

@JmyW try this

replace line 86 in YouTubeExtractor.java private static final Pattern patSignatureDecFunction = Pattern.compile("([\\w$]+)\\s*=\\s*function\\(([\\w$]+)\\).\\s*\\2=\\s*\\2\\.split\\(\"\"\\)\\s*;");

to private final static Pattern patSignatureDecFunction = Pattern.compile("\\b([\\w$]{2})\\s*=\\s*function\\((\\w+)\\)\\{\\s*\\2=\\s*\\2\\.split\\(\"\"\\)\\s*;");

xibr avatar Jan 24 '20 18:01 xibr

Thanks, bunaif But I tested examples: Still failed, ytFiles is null. https://www.youtube.com/watch?v=eNt78mQJavY https://www.youtube.com/watch?v=AgFeZr5ptV8 https://www.youtube.com/watch?v=-CwoylxqVPA

JmyW avatar Jan 25 '20 01:01 JmyW

working with me

https://www.youtube.com/watch?v=-CwoylxqVPA

Screenshot_٢٠٢٠٠١٢٥-٠٦٤٦٠٩_YouTube Download

and this

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

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

xibr avatar Jan 25 '20 02:01 xibr

Thanks for prompt feedback. I still failed :-(

JmyW avatar Jan 25 '20 03:01 JmyW

@JmyW try to clear the cache, this forces a new download and extraction of the decipher function

HaarigerHarald avatar Jan 25 '20 12:01 HaarigerHarald

Got it, thank you!

JmyW avatar Jan 26 '20 01:01 JmyW

Hi @HaarigerHarald , any plan to land this fix on JitPack?

Danopie avatar Jan 30 '20 08:01 Danopie

We need a fix for this issue

sametserpil avatar Feb 04 '20 08:02 sametserpil

@sametserpil Have you update the code that Bunaif and Harald upload 10 days ago? It works on my site.

JmyW avatar Feb 04 '20 11:02 JmyW

@JmyW Hello, I'm using latest version (2.0.0) and not working for me. ytFiles is null

sametserpil avatar Feb 04 '20 12:02 sametserpil

@JmyW you solved your problem ? with clear the cache, solution then please tell me how to clear cache i am also suffering same isuue some url not extract and getting ytfile null

craftbox2245 avatar Feb 08 '20 06:02 craftbox2245

I found it works on my phone but failed on the emulator. To clear the cache, I actually just wipe the data of emulator. Then it works.

JmyW avatar Feb 09 '20 06:02 JmyW