projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
073ac12
)
[downloader/hls] fill IV with zeros for IVs shorter than 16-octet
author
Remita Amine
<remitamine@gmail.com>
Thu, 25 Aug 2016 07:37:41 +0000
(08:37 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Thu, 25 Aug 2016 07:49:44 +0000
(08:49 +0100)
youtube_dl/downloader/hls.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/hls.py
b/youtube_dl/downloader/hls.py
index 8d7971e5d7042e5917deaf589cdebac7d488cd10..8dd1b898e89b20f584a4558dcd7b37cea5291b5f 100644
(file)
--- a/
youtube_dl/downloader/hls.py
+++ b/
youtube_dl/downloader/hls.py
@@
-120,7
+120,7
@@
class HlsFD(FragmentFD):
decrypt_info = parse_m3u8_attributes(line[11:])
if decrypt_info['METHOD'] == 'AES-128':
if 'IV' in decrypt_info:
- decrypt_info['IV'] = binascii.unhexlify(decrypt_info['IV'][2:])
+ decrypt_info['IV'] = binascii.unhexlify(decrypt_info['IV'][2:]
.zfill(32)
)
if not re.match(r'^https?://', decrypt_info['URI']):
decrypt_info['URI'] = compat_urlparse.urljoin(
man_url, decrypt_info['URI'])