From 83a2f82d230a29ab1d8ae764d92ec7a6faf60999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kjist=C3=B3f?= Date: Mon, 16 Jan 2017 01:56:52 +0100 Subject: [PATCH] now user configurations of youtube-dl won't cause coub-dl to fail --- coub-dl.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/coub-dl.py b/coub-dl.py index ed4f131..6415007 100644 --- a/coub-dl.py +++ b/coub-dl.py @@ -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!')