nhCoder / YouTubeExtractor

Extracts Youtube urls for streaming and downloading purpose.
Apache License 2.0
68 stars 25 forks source link

Failed to extract information from video. #47

Open yyms3275 opened 3 years ago

yyms3275 commented 3 years ago

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

hhyeok1026 commented 3 years ago

@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 commented 3 years ago

@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.

yyms3275 commented 3 years ago

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 :)

hhyeok1026 commented 3 years ago

@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,

yyms3275 commented 3 years ago

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

JmyW commented 3 years ago

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?

nhCoder commented 3 years ago

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