aboutsummaryrefslogtreecommitdiffstats
path: root/hypervideo_dl/extractor/hitbox.py
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2022-12-02 05:21:10 +0800
committerJesús <heckyel@hyperbola.info>2022-12-02 05:21:10 +0800
commiteaeeef9c1d1bedb76fea953c332ef84d53bffe2c (patch)
treec3cb5582247e47fc67c24cd7ff8ea857fb76821e /hypervideo_dl/extractor/hitbox.py
parent1e5a50b71d8f0eae6007bedc329eecb24bb5aba3 (diff)
downloadhypervideo-eaeeef9c1d1bedb76fea953c332ef84d53bffe2c.tar.lz
hypervideo-eaeeef9c1d1bedb76fea953c332ef84d53bffe2c.tar.xz
hypervideo-eaeeef9c1d1bedb76fea953c332ef84d53bffe2c.zip
update from upstream
Diffstat (limited to 'hypervideo_dl/extractor/hitbox.py')
-rw-r--r--hypervideo_dl/extractor/hitbox.py13
1 files changed, 4 insertions, 9 deletions
diff --git a/hypervideo_dl/extractor/hitbox.py b/hypervideo_dl/extractor/hitbox.py
index 0470d0a..f0c6898 100644
--- a/hypervideo_dl/extractor/hitbox.py
+++ b/hypervideo_dl/extractor/hitbox.py
@@ -1,16 +1,13 @@
-# coding: utf-8
-from __future__ import unicode_literals
-
import re
from .common import InfoExtractor
+from ..compat import compat_str
from ..utils import (
clean_html,
- parse_iso8601,
+ determine_ext,
float_or_none,
int_or_none,
- compat_str,
- determine_ext,
+ parse_iso8601,
)
@@ -121,7 +118,6 @@ class HitboxIE(InfoExtractor):
'tbr': bitrate,
'format_note': label,
})
- self._sort_formats(formats)
metadata = self._extract_metadata(
'https://www.smashcast.tv/api/media/video', video_id)
@@ -130,7 +126,7 @@ class HitboxIE(InfoExtractor):
return metadata
-class HitboxLiveIE(HitboxIE):
+class HitboxLiveIE(HitboxIE): # XXX: Do not subclass from concrete IE
IE_NAME = 'hitbox:live'
_VALID_URL = r'https?://(?:www\.)?(?:hitbox|smashcast)\.tv/(?P<id>[^/?#&]+)'
_TESTS = [{
@@ -203,7 +199,6 @@ class HitboxLiveIE(HitboxIE):
'page_url': url,
'player_url': 'http://www.hitbox.tv/static/player/flowplayer/flowplayer.commercial-3.2.16.swf',
})
- self._sort_formats(formats)
metadata = self._extract_metadata(
'https://www.smashcast.tv/api/media/live', video_id)