added hotfix for external coub change breaking script. similar to 1e7a5a2cf2

This commit is contained in:
Kjistóf 2017-10-25 20:47:21 +02:00
parent 43475f30a9
commit d19597b0f9
1 changed files with 2 additions and 12 deletions

View File

@ -92,17 +92,7 @@ class coub_dl:
url = get_output(('youtube-dl',
'--get-url', self._url))
curl = Popen(('curl', '--silent',
'--write-out',
'--location',
url),
stdout=PIPE)
grep = Popen(('grep', '--only-matching', '"http.*"'),
stdin=curl.stdout, stdout=PIPE)
url = get_output(('sed', 's/muted_//g'),
stdin=grep.stdout).strip('"')
url = url.replace('muted_', '')
call(('youtube-dl', '--ignore-config',
'--output', '{}.%(ext)s'.format(self._files_dict[Stream.VIDEO]),
@ -171,7 +161,7 @@ class coub_dl:
@staticmethod
@call_verbose(before_message='Checking your system for dependencies... ', after_message='Found all!')
def check_for_dependencies():
check_for = (('youtube-dl', '--version'), ('ffmpeg', '-version'), ('curl', '--version'))
check_for = (('youtube-dl', '--version'), ('ffmpeg', '-version'))
error_str = '\nMissing dependencies: {}'
missing = []