universcience 5
This commit is contained in:
parent
cc59aba2b3
commit
7b188bb67f
@ -11,6 +11,8 @@ from ..utils import (
|
||||
update_url_query,
|
||||
)
|
||||
|
||||
import re
|
||||
|
||||
|
||||
class UniverscienceIE(InfoExtractor):
|
||||
_VALID_URL = r'https?://(?:www\.)?universcience\.tv/video-.*-(?P<id>[0-9]+)\.html'
|
||||
@ -63,8 +65,7 @@ class UniverscienceIE(InfoExtractor):
|
||||
media_label = xpath_attr(media_source, './streaming_type', 'label')
|
||||
media_width = int_or_none(self._search_regex(r'(\d*) x \d*', media_label, 'width', default=None))
|
||||
media_height = int_or_none(self._search_regex(r'\d* x (\d*)', media_label, 'height', default=None))
|
||||
media_label = self._search_regex(
|
||||
r'(.*) \d* x \d*', media_label, 'media_label', default=media_label, fatal=False)
|
||||
media_label = re.sub(' \d* x \d*', '', media_label)
|
||||
|
||||
if media_label in ('HLS', 'm3u8'):
|
||||
formats.extend(self._extract_m3u8_formats(
|
||||
|
Loading…
x
Reference in New Issue
Block a user