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

Python API: how to --force-ipv4 #13150

Closed
fenollp opened this issue May 18, 2017 · 2 comments
Closed

Python API: how to --force-ipv4 #13150

fenollp opened this issue May 18, 2017 · 2 comments

Comments

@fenollp
Copy link
Contributor

@fenollp fenollp commented May 18, 2017

Hi there, love your work, thank you a lot for your time.

I can't find the Python version of option --force-ipv4 anywhere.
Also I can't find much documentation on the Python API in general.

Is this implemented in the Python API?
If not, where should I start to add it?

Thanks

@dstftw dstftw closed this May 19, 2017
@strafe
Copy link

@strafe strafe commented Dec 29, 2017

Since the link above no longer shows the relevant line, the option to do this is source_address.

Example usage if your server's public IPv4 address is 1.1.1.1:

with youtube_dl.YoutubeDL({"source_address": "1.1.1.1"}) as ydl:
	ydl.download(["https://www.youtube.com/watch?v=eZqrGXgHHV4"])
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
3 participants
You can’t perform that action at this time.