ytdl-org / youtube-dl

Command-line program to download videos from YouTube.com and other video sites
http://ytdl-org.github.io/youtube-dl/
The Unlicense
132.73k stars 10.07k forks source link

Subtitles of the site ADN without encryption key #30407

Open hyugogirubato opened 2 years ago

hyugogirubato commented 2 years ago

Checklist

Description

I found a method to no longer have the problem of the ADN subtitle encryption key. If you are interested I will tell you more in this discussion, but ping me. I think its will help a lot of people.

SMods11 commented 2 years ago

Checklist

  • [x] I'm reporting a feature request
  • [x] I've verified that I'm running youtube-dl version 2021.12.17
  • [x] I've searched the bugtracker for similar feature requests including closed ones

Description

I found a method to no longer have the problem of the ADN subtitle encryption key. If you are interested I will tell you more in this discussion, but ping me. I think its will help a lot of people.

Yes please can you tell more about the method

hyugogirubato commented 2 years ago

@SMods11

Okay, so here’s the code I developed. Obviously there are a few too many, but it was to do something else. This is the code I developed in python to be able to go faster in the development of my API that I invite you to see because it is quite complete and offers some interesting features.

There is a place in the code of the hand.py where I added a note. In this part I use an api I made to generate the access token because I did not know how to redo the code used in youtube-dl in Javascript. But this corresponds to the same part so you can easily replace.

The main.py in the first part retrieved all the information from the video and provided it to you on a single, simpler JSON frame. And the script subtitles.py will generate the subtitles from a previously retrieved subtitles link.

The API I made works on the same principle, but the result is a little better because I improved some stuff by programming my API.

Tell me if it’s good for you.

Links: Kamyroll-Developers pythonAPI.zip

dirkf commented 2 years ago

Related #29586.