aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/downloader/hls.py
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2016-08-25 08:37:41 +0100
committerRemita Amine <remitamine@gmail.com>2016-08-25 08:49:44 +0100
commit07ea9c9b05359aef14472dfa66a6578d21c88e96 (patch)
tree57d71a8e1456eef14dc2a815131a78d469deab0b /youtube_dl/downloader/hls.py
parent073ac1225f6fe28905e11f29f2d23f4b4db50f9c (diff)
downloadyoutube-dl-07ea9c9b05359aef14472dfa66a6578d21c88e96.zip
youtube-dl-07ea9c9b05359aef14472dfa66a6578d21c88e96.tar.gz
youtube-dl-07ea9c9b05359aef14472dfa66a6578d21c88e96.tar.bz2
[downloader/hls] fill IV with zeros for IVs shorter than 16-octet
Diffstat (limited to 'youtube_dl/downloader/hls.py')
-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 8d7971e..8dd1b89 100644
--- 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'])