Test Travis CI
This commit is contained in:
parent
070a9c1841
commit
f9cb1f9ab5
@ -544,12 +544,7 @@ class FileDownloader(object):
|
||||
# Download and write
|
||||
before = time.time()
|
||||
data_block = data.read(block_size)
|
||||
# Dynamic output video binary to stdout
|
||||
if self.params.get('dynamic', False) and self.params.get('quiet', False):
|
||||
try:
|
||||
sys.stdout.write(data_block)
|
||||
except ImportError: # Python 3
|
||||
sys.stdout.buffer.write(data_block)
|
||||
|
||||
after = time.time()
|
||||
if len(data_block) == 0:
|
||||
break
|
||||
|
@ -280,8 +280,6 @@ def parseOpts(overrideArguments=None):
|
||||
help='do not automatically adjust the buffer size. By default, the buffer size is automatically resized from an initial value of SIZE.', default=False)
|
||||
downloader.add_option('--test', action='store_true', dest='test', default=False, help=optparse.SUPPRESS_HELP)
|
||||
|
||||
verbosity.add_option('-d', '--dynamic',
|
||||
action='store_true', dest='dynamic', help='Dynamic ouput video binary to stdout', default=False)
|
||||
verbosity.add_option('-q', '--quiet',
|
||||
action='store_true', dest='quiet', help='activates quiet mode', default=False)
|
||||
verbosity.add_option('-s', '--simulate',
|
||||
@ -609,7 +607,6 @@ def _real_main(argv=None):
|
||||
'username': opts.username,
|
||||
'password': opts.password,
|
||||
'videopassword': opts.videopassword,
|
||||
'dynamic': opts.dynamic,
|
||||
'quiet': (opts.quiet or opts.geturl or opts.gettitle or opts.getid or opts.getthumbnail or opts.getdescription or opts.getfilename or opts.getformat),
|
||||
'forceurl': opts.geturl,
|
||||
'forcetitle': opts.gettitle,
|
||||
|
Loading…
x
Reference in New Issue
Block a user