aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/redbulltv.py
diff options
context:
space:
mode:
Diffstat (limited to 'hypervideo_dl/extractor/redbulltv.py')
-rw-r--r--hypervideo_dl/extractor/redbulltv.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/hypervideo_dl/extractor/redbulltv.py b/hypervideo_dl/extractor/redbulltv.py
index 756a366..a01bc84 100644
--- a/hypervideo_dl/extractor/redbulltv.py
+++ b/hypervideo_dl/extractor/redbulltv.py
@@ -1,7 +1,3 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
-
from .common import InfoExtractor
from ..compat import compat_HTTPError
from ..utils import (
@@ -84,7 +80,6 @@ class RedBullTVIE(InfoExtractor):
formats, subtitles = self._extract_m3u8_formats_and_subtitles(
'https://dms.redbull.tv/v3/%s/%s/playlist.m3u8' % (video_id, token),
video_id, 'mp4', entry_protocol='m3u8_native', m3u8_id='hls')
- self._sort_formats(formats)
for resource in video.get('resources', []):
if resource.startswith('closed_caption_'):
@@ -114,7 +109,7 @@ class RedBullTVIE(InfoExtractor):
return self.extract_info(video_id)
-class RedBullEmbedIE(RedBullTVIE):
+class RedBullEmbedIE(RedBullTVIE): # XXX: Do not subclass from concrete IE
_VALID_URL = r'https?://(?:www\.)?redbull\.com/embed/(?P<id>rrn:content:[^:]+:[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}:[a-z]{2}-[A-Z]{2,3})'
_TESTS = [{
# HLS manifest accessible only using assetId