aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorYen Chi Hsuan <yan12125@gmail.com>2015-10-17 22:49:05 +0800
committerYen Chi Hsuan <yan12125@gmail.com>2015-10-18 13:44:21 +0800
commit985e4fdc07f00a3fdc8e7b7b4119471ee97f3890 (patch)
tree05828c06d59e56c8c2a7b71390d441317a511d69 /youtube_dl
parent1e399778ee870ee583135e65458268cd7c0fb923 (diff)
[downloader/hls] Add headers only for http(s) URLs
ffmpeg 2.8.1 raises an error with -headers and non-http input files.
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/downloader/hls.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/downloader/hls.py b/youtube_dl/downloader/hls.py
index a62d2047b..9a83a73dd 100644
--- a/youtube_dl/downloader/hls.py
+++ b/youtube_dl/downloader/hls.py
@@ -30,7 +30,7 @@ class HlsFD(FileDownloader):
args = [ffpp.executable, '-y']
- if info_dict['http_headers']:
+ if info_dict['http_headers'] and re.match(r'^https?://', url):
# Trailing \r\n after each HTTP header is important to prevent warning from ffmpeg/avconv:
# [http @ 00000000003d2fa0] No trailing CRLF found in HTTP header.
args += [