1 from .common
import InfoExtractor
2 from ..utils
import traverse_obj
5 class SYVDKIE(InfoExtractor
):
6 _VALID_URL
= r
'https?://(?:www\.)?24syv\.dk/episode/(?P<id>[\w-]+)'
9 'url': 'https://24syv.dk/episode/isabella-arendt-stiller-op-for-de-konservative-2',
10 'md5': '429ce5a423dd4b1e1d0bf3a569558089',
13 'display_id': 'isabella-arendt-stiller-op-for-de-konservative-2',
15 'title': 'Isabella Arendt stiller op for De Konservative',
16 'description': 'md5:f5fa6a431813bf37284f3412ad7c6c06',
20 def _real_extract(self
, url
):
21 video_id
= self
._match
_id
(url
)
22 webpage
= self
._download
_webpage
(url
, video_id
)
23 info_data
= self
._search
_nextjs
_data
(webpage
, video_id
)['props']['pageProps']['episodeDetails'][0]
26 'id': str(info_data
['id']),
29 'url': info_data
['details']['enclosure'],
30 'display_id': video_id
,
31 'title': traverse_obj(info_data
, ('title', 'rendered')),
32 'description': traverse_obj(info_data
, ('details', 'post_title')),