youtube-dl

Another place where youtube-dl lives on
git clone git://git.oshgnacknak.de/youtube-dl.git
Log | Files | Refs | README | LICENSE

commit 500b8b41c1a1c27da64def50514c247e05f6fbbe
parent be4a824d74add1a3b78b8244dff12f4f078f168a
Author: Philipp Hagemeister <phihag@phihag.de>
Date:   Sat, 10 Jan 2015 20:02:02 +0100

[options] Add -4 and -6 options

Fixes #520, fixes #3626.

Diffstat:
Myoutube_dl/options.py | 10++++++++++
1 file changed, 10 insertions(+), 0 deletions(-)

diff --git a/youtube_dl/options.py b/youtube_dl/options.py @@ -179,6 +179,16 @@ def parseOpts(overrideArguments=None): metavar='IP', dest='source_address', default=None, help='Client-side IP address to bind to (experimental)', ) + network.add_option( + '-4', '--force-ipv4', + action='store_const', const='0.0.0.0', dest='source_address', + help='Make all connections via IPv4 (experimental)', + ) + network.add_option( + '-6', '--force-ipv6', + action='store_const', const='::', dest='source_address', + help='Make all connections via IPv6 (experimental)', + ) selection = optparse.OptionGroup(parser, 'Video Selection') selection.add_option(