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

How to implement --user-agent #22498

Closed
Analog78 opened this issue Sep 24, 2019 · 3 comments
Closed

How to implement --user-agent #22498

Analog78 opened this issue Sep 24, 2019 · 3 comments
Labels

Comments

@Analog78
Copy link

@Analog78 Analog78 commented Sep 24, 2019

Checklist

  • I'm asking a question
  • I've looked through the README and FAQ for similar questions
  • I've searched the bugtracker for similar questions including closed ones

Question

WRITE QUESTION HERE
I use a TenFourFoxBox ( a web app creator for TenFourFox on PowerPC Macs) pointing to https://m.youtube.com using the following Nokia mobile phone user agent to stream 3gp videos:

NokiaN90-1/3.0545.5.1 Series60/2.8 Profile/MIDP-2.0 Configuration/CLDC-1.1

When clicked in the browser the video streams through RealPlayer.

I've included screenshot as some still maintain Youtube no longer provides 3gp files when it clearly does.

My question is how do I use --user-agent at the command line to reveal 3gp files - I tried adding the above user agent but it made no difference - what is the correct syntax?

Screen

@Analog78 Analog78 added the question label Sep 24, 2019
@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 24, 2019

It's a correct syntax. Though you can't switch to m.youtube.com without changing extractor's source code.

@dstftw dstftw closed this Sep 24, 2019
@Analog78
Copy link
Author

@Analog78 Analog78 commented Sep 24, 2019

If I replace www.youtube with m.youtube at the commandline it still works. My question is --user-agent UA -F url doesn't make any changes - what would?

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Sep 24, 2019

Again: --user-agent does change the user agent, changing www.yotube with m.youtube on command line does not make youtube-dl use m.youtube.

@ytdl-org ytdl-org locked and limited conversation to collaborators Sep 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
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.