now user configurations of youtube-dl won't cause coub-dl to fail

This commit is contained in:
Kjistóf 2017-01-16 01:56:52 +01:00
parent 85f7ca4e73
commit 83a2f82d23

View File

@ -46,13 +46,15 @@ def getDuration(ffprobe_output):
def downloadStreams():
print_opt('Downloading audio stream... ', end='', flush=True)
call(('/usr/bin/env', 'youtube-dl', '--extract-audio',
call(('/usr/bin/env', 'youtube-dl', '--ignore-config',
'--extract-audio',
'--output', '{}.%(ext)s'.format(FILES[Stream.AUDIO]),
URL),
stdout=DEVNULL, stderr=DEVNULL)
print_opt('Done!')
print_opt('Downloading video stream... ', end='', flush=True)
call(('/usr/bin/env', 'youtube-dl', '--output', '{}.%(ext)s'.format(FILES[Stream.VIDEO]),
call(('/usr/bin/env', 'youtube-dl', '--ignore-config',
'--output', '{}.%(ext)s'.format(FILES[Stream.VIDEO]),
URL),
stdout=DEVNULL, stderr=DEVNULL)
print_opt('Done!')