universcience 3
This commit is contained in:
parent
85ab99d1f2
commit
0a0c6d27ba
@ -116,7 +116,6 @@ from .camdemy import (
|
||||
from .camwithher import CamWithHerIE
|
||||
from .canalplus import CanalplusIE
|
||||
from .canalc2 import Canalc2IE
|
||||
from .canalu import CanalUIE
|
||||
from .canvas import CanvasIE
|
||||
from .carambatv import (
|
||||
CarambaTVIE,
|
||||
|
@ -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'
|
||||
@ -64,7 +66,7 @@ class UniverscienceIE(InfoExtractor):
|
||||
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)
|
||||
r'(.*) \d* x \d*', media_label, 'media_label', default=media_label, fatal=False)
|
||||
|
||||
if media_label in ('HLS', 'm3u8'):
|
||||
formats.extend(self._extract_m3u8_formats(
|
||||
|
Loading…
x
Reference in New Issue
Block a user