projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1e39977
)
[downloader/hls] Add headers only for http(s) URLs
author
Yen Chi Hsuan
<yan12125@gmail.com>
Sat, 17 Oct 2015 14:49:05 +0000
(22:49 +0800)
committer
Yen Chi Hsuan
<yan12125@gmail.com>
Sun, 18 Oct 2015 05:44:21 +0000
(13:44 +0800)
ffmpeg 2.8.1 raises an error with -headers and non-http input files.
youtube_dl/downloader/hls.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/hls.py
b/youtube_dl/downloader/hls.py
index a62d2047bbefc27bb06208bbaf19a523d411377f..9a83a73dd6b16db50cc4e72a343b1669c146a386 100644
(file)
--- 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 += [