YouTubeExtractor icon indicating copy to clipboard operation
YouTubeExtractor copied to clipboard

Failed to extract information from video.

Open yyms3275 opened this issue 4 years ago • 7 comments

Failed to extract information of some specific videos. It seems that the most suspicious part is the music-related video.

https://www.youtube.com/watch?v=IAyMtl9FRHI https://www.youtube.com/watch?v=0_UESjWQOwQ

yyms3275 avatar Feb 23 '21 07:02 yyms3275

@nhCoder

The ciphered video is not working. (Mainly copyrighted official music channels)

=================================

What I've been debugging.

CipherManager class -> public static String getDecipherCode(String Basejs) method in

This line is the problem. String RawName=RegexUtils.matchGroup(RegexVarName, DecipherFun).replace("$","\\$"); RegexUtils.matchGroup(RegexVarName, DecipherFun) => This is a null value.

The reason is that the DecipherFun value of the line above it is strange. String DecipherFun => value : "decipher=function(a)null".

As a result, RegexDesipherFunctionCode does not work. so, RegexVarName also doesn't work.

The cause is private static String getPlayerCode(String playerUrl) throws IOException The structure has changed in the page fetched from the method.

hhyeok1026 avatar Feb 23 '21 09:02 hhyeok1026

@yyms3275

It is now confirmed to be working again.

It looks like YouTube has turned it back.

However, it can also cause problems, so, I've found a more stable library I am applying that library to my project. https://github.com/yausername/youtubedl-android It is a library that wraps the most famous ytdl written in python.

hhyeok1026 avatar Feb 25 '21 05:02 hhyeok1026

I just confirmed that it works. As I said, I am anxious because I don't know when it will fail again in the future. Let's check the library you informed. Thank you for your continued interest :)

yyms3275 avatar Feb 25 '21 05:02 yyms3275

@yyms3275

https://github.com/sealedtx/java-youtube-downloader/issues/72

When an error occurs, there is a fixed content of the library where the same error occurred as we did.

If we check the library's modifications, it looks like we'll get some hints on points to fix.

but, Currently I can't test it. Now that it’s working well with the existing source,

hhyeok1026 avatar Feb 26 '21 07:02 hhyeok1026

Thanks for the information. If it doesn't work again next time, I will try to debug that part.

yyms3275 avatar Feb 26 '21 08:02 yyms3275

I got failure too in my side: https://www.youtube.com/watch?v=AgFeZr5ptV8 https://www.youtube.com/watch?v=8xg3vE8Ie_E

Is there anyone fixed it? could you share?

JmyW avatar Mar 14 '21 07:03 JmyW

I got failure too in my side: https://www.youtube.com/watch?v=AgFeZr5ptV8 https://www.youtube.com/watch?v=8xg3vE8Ie_E

Is there anyone fixed it? could you share?

I m having no issues with these videos.. Pull the latest code and build again

nhCoder avatar Mar 30 '21 13:03 nhCoder