1 from .common
import InfoExtractor
4 class RestudyIE(InfoExtractor
):
6 _VALID_URL
= r
'https?://(?:(?:www|portal)\.)?restudy\.dk/video/[^/]+/id/(?P<id>[0-9]+)'
8 'url': 'https://www.restudy.dk/video/play/id/1637',
12 'title': 'Leiden-frosteffekt',
13 'description': 'Denne video er et eksperiment med flydende kvælstof.',
17 'skip_download': True,
20 'url': 'https://portal.restudy.dk/video/leiden-frosteffekt/id/1637',
21 'only_matching': True,
24 def _real_extract(self
, url
):
25 video_id
= self
._match
_id
(url
)
27 webpage
= self
._download
_webpage
(url
, video_id
)
29 title
= self
._og
_search
_title
(webpage
).strip()
30 description
= self
._og
_search
_description
(webpage
).strip()
32 formats
= self
._extract
_smil
_formats
(
33 f
'https://cdn.portal.restudy.dk/dynamic/themes/front/awsmedia/SmilDirectory/video_{video_id}.xml',
39 'description': description
,