Skip to content

Commit

Permalink
[vrv] extract adaptive_hls formats(closes #21243)
Browse files Browse the repository at this point in the history
  • Loading branch information
remitamine authored and cantre committed Jun 9, 2019
1 parent 0993935 commit 5836458
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions youtube_dl/extractor/vrv.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def _real_initialize(self):
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:
Expand All @@ -140,7 +140,7 @@ def _extract_vrv_formats(self, url, video_id, stream_format, audio_lang, hardsub
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,
Expand Down

0 comments on commit 5836458

Please sign in to comment.