summary refs log tree commit diff
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2019-06-01 11:16:44 +0100
committerRemita Amine <remitamine@gmail.com>2019-06-01 11:17:44 +0100
commit0e2dd3fcbce3a01dc4f6ce3911f5f279c3827edf (patch)
tree506f94abb057e52e5fccfc4037a18c15ea26ec92
parent26a87972a9dcd4eac6112c06372745d6d0983f92 (diff)
downloadyoutube-dl-0e2dd3fcbce3a01dc4f6ce3911f5f279c3827edf.tar.gz
youtube-dl-0e2dd3fcbce3a01dc4f6ce3911f5f279c3827edf.tar.xz
youtube-dl-0e2dd3fcbce3a01dc4f6ce3911f5f279c3827edf.zip
[vrv] extract adaptive_hls formats(closes #21243)
-rw-r--r--youtube_dl/extractor/vrv.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/vrv.py b/youtube_dl/extractor/vrv.py
index b698bf66c..c814a8a4a 100644
--- a/youtube_dl/extractor/vrv.py
+++ b/youtube_dl/extractor/vrv.py
@@ -130,7 +130,7 @@ class VRVIE(VRVBaseIE):
         self._TOKEN_SECRET = token_credentials['oauth_token_secret']
 
     def _extract_vrv_formats(self, url, video_id, stream_format, audio_lang, hardsub_lang):
-        if not url or stream_format not in ('hls', 'dash'):
+        if not url or stream_format not in ('hls', 'dash', 'adaptive_hls'):
             return []
         stream_id_list = []
         if audio_lang:
@@ -140,7 +140,7 @@ class VRVIE(VRVBaseIE):
         format_id = stream_format
         if stream_id_list:
             format_id += '-' + '-'.join(stream_id_list)
-        if stream_format == 'hls':
+        if 'hls' in stream_format:
             adaptive_formats = self._extract_m3u8_formats(
                 url, video_id, 'mp4', m3u8_id=format_id,
                 note='Downloading %s information' % format_id,