Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is the use of the [Setting language] step ? #2565

Closed
romaincointepas opened this issue Mar 15, 2014 · 2 comments
Closed

What is the use of the [Setting language] step ? #2565

romaincointepas opened this issue Mar 15, 2014 · 2 comments

Comments

@romaincointepas
Copy link

@romaincointepas romaincointepas commented Mar 15, 2014

  1. The way I use youtube-dl requires the time between calling youtube-dl ... and getting the stream urls to be as short as possible.
    Here are the urls called during this step (sequential calls) :
    https://www.youtube.com/?hl=en&persist_hl=1&gl=US&persist_gl=1&opt_out_ackd=1
    https://www.youtube.com/?hl=en&gl=US
  2. Also, if only the itag and stream urls are being asked (in --simulate mode), could the /watch?v=xxx step also be avoided ?
@jaimeMF
Copy link
Collaborator

@jaimeMF jaimeMF commented Mar 15, 2014

Actually you'll need the /watch?v=xxx if the video has encrypted signatures (we use the player configuration from that page).
The [Setting language] step is to make sure we always receive the English page and not a localized version, which may break some things (I'm not really sure about this). There's an open issue for avoiding it (#584). You get two calls because the first one redirects to the second url, but it also sets some cookies.
I think we can close the issue, do you agree?

@romaincointepas
Copy link
Author

@romaincointepas romaincointepas commented Mar 15, 2014

Thanks a lot for the explanation @jaimeMF, I've closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.