diff options
author | Remita Amine <remitamine@gmail.com> | 2016-07-13 15:54:43 +0100 |
---|---|---|
committer | Remita Amine <remitamine@gmail.com> | 2016-07-13 15:58:24 +0100 |
commit | 00f4764cb7fdb39e3fd238440c373a2d7712d8d2 (patch) | |
tree | cb7b053b28ebb88cafb8c5d9578e8caf44b27af2 /youtube_dl/extractor/wat.py | |
parent | 51c2cd0b83777f87fbc45b18f59a6f467717ba57 (diff) |
[common] extract vbr, abr and fps for Unified Streaming Platform m3u8 manifests
Diffstat (limited to 'youtube_dl/extractor/wat.py')
-rw-r--r-- | youtube_dl/extractor/wat.py | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/youtube_dl/extractor/wat.py b/youtube_dl/extractor/wat.py index de7d6b559..48fc438ed 100644 --- a/youtube_dl/extractor/wat.py +++ b/youtube_dl/extractor/wat.py @@ -9,7 +9,6 @@ from ..utils import ( ExtractorError, unified_strdate, HEADRequest, - float_or_none, ) @@ -95,16 +94,7 @@ class WatIE(InfoExtractor): m3u8_url.replace('ios.', 'web.').replace('.m3u8', '.f4m'), video_id, f4m_id='hds', fatal=False)) for m3u8_format in m3u8_formats: - mobj = re.search( - r'audio.*?%3D(\d+)(?:-video.*?%3D(\d+))?', m3u8_format['url']) - if not mobj: - continue - abr, vbr = mobj.groups() - abr, vbr = float_or_none(abr, 1000), float_or_none(vbr, 1000) - m3u8_format.update({ - 'vbr': vbr, - 'abr': abr, - }) + vbr, abr = m3u8_format.get('vbr'), m3u8_format.get('abr') if not vbr or not abr: continue f = m3u8_format.copy() |