]>
jfr.im git - yt-dlp.git/blob - youtube_dl/extractor/phoenix.py
1 from __future__
import unicode_literals
6 class PhoenixIE(ZDFIE
):
7 _VALID_URL
= r
'''(?x)https?://(?:www\.)?phoenix\.de/content/
9 phoenix/die_sendungen/(?:[^/]+/)?
14 'url': 'http://www.phoenix.de/content/884301',
15 'md5': 'ed249f045256150c92e72dbb70eadec6',
19 'title': 'Michael Krons mit Hans-Werner Sinn',
20 'description': 'Im Dialog - Sa. 25.10.14, 00.00 - 00.35 Uhr',
21 'upload_date': '20141025',
22 'uploader': 'Im Dialog',
26 'url': 'http://www.phoenix.de/content/phoenix/die_sendungen/869815',
27 'only_matching': True,
30 'url': 'http://www.phoenix.de/content/phoenix/die_sendungen/diskussionen/928234',
31 'only_matching': True,
35 def _real_extract(self
, url
):
36 video_id
= self
._match
_id
(url
)
37 webpage
= self
._download
_webpage
(url
, video_id
)
39 internal_id
= self
._search
_regex
(
40 r
'<div class="phx_vod" id="phx_vod_([0-9]+)"',
41 webpage
, 'internal video ID')
43 api_url
= 'http://www.phoenix.de/php/mediaplayer/data/beitrags_details.php?ak=web&id=%s' % internal_id
44 return self
.extract_from_xml_url(video_id
, api_url
)