]>
jfr.im git - yt-dlp.git/blob - yt_dlp/extractor/restudy.py
1 from .common
import InfoExtractor
4 class RestudyIE(InfoExtractor
):
5 _VALID_URL
= r
'https?://(?:(?:www|portal)\.)?restudy\.dk/video/[^/]+/id/(?P<id>[0-9]+)'
7 'url': 'https://www.restudy.dk/video/play/id/1637',
11 'title': 'Leiden-frosteffekt',
12 'description': 'Denne video er et eksperiment med flydende kvælstof.',
16 'skip_download': True,
19 'url': 'https://portal.restudy.dk/video/leiden-frosteffekt/id/1637',
20 'only_matching': True,
23 def _real_extract(self
, url
):
24 video_id
= self
._match
_id
(url
)
26 webpage
= self
._download
_webpage
(url
, video_id
)
28 title
= self
._og
_search
_title
(webpage
).strip()
29 description
= self
._og
_search
_description
(webpage
).strip()
31 formats
= self
._extract
_smil
_formats
(
32 'https://cdn.portal.restudy.dk/dynamic/themes/front/awsmedia/SmilDirectory/video_%s.xml' % video_id
,
34 self
._sort
_formats
(formats
)
39 'description': description
,