diff --git a/coub-dl.py b/coub-dl.py index 41a6812..5a45511 100755 --- a/coub-dl.py +++ b/coub-dl.py @@ -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 = []