Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Failed to extract information from video. #47

Open
yyms3275 opened this issue Feb 23, 2021 · 7 comments
Open

Failed to extract information from video. #47

yyms3275 opened this issue Feb 23, 2021 · 7 comments

Comments

@yyms3275
Copy link

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
Copy link
Contributor

hhyeok1026 commented Feb 23, 2021

@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
Copy link
Contributor

hhyeok1026 commented Feb 25, 2021

@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
Copy link
Author

yyms3275 commented Feb 25, 2021

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
Copy link
Contributor

@yyms3275

sealedtx/java-youtube-downloader#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
Copy link
Author

yyms3275 commented Feb 26, 2021

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

@JmyW
Copy link

JmyW commented Mar 14, 2021

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
Copy link
Owner

nhCoder commented Mar 30, 2021

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

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

4 participants