[youtube:channel] Improve channel id extraction and detect unavailable channels ...
[youtube-dl] / youtube_dl / downloader / external.py
index 3a73cee1c7c09f6e9350e13b9a041edfdd4a517a..fae2450248494a70f237a65d07a4bedcfddaadeb 100644 (file)
@@ -85,7 +85,7 @@ class ExternalFD(FileDownloader):
             cmd, stderr=subprocess.PIPE)
         _, stderr = p.communicate()
         if p.returncode != 0:
-            self.to_stderr(stderr)
+            self.to_stderr(stderr.decode('utf-8', 'replace'))
         return p.returncode
 
 
@@ -210,6 +210,7 @@ class FFmpegFD(ExternalFD):
             # args += ['-http_proxy', proxy]
             env = os.environ.copy()
             compat_setenv('HTTP_PROXY', proxy, env=env)
+            compat_setenv('http_proxy', proxy, env=env)
 
         protocol = info_dict.get('protocol')