]>
Raphaƫl G. Git Repositories - youtubedl/blob - youtube_dl/extractor/phoenix.py
a20672c0cc7fea5309e77bb193b887ced2b8d7d5
1 from __future__
import unicode_literals
3 from .common
import InfoExtractor
4 from .zdf
import extract_from_xml_url
7 class PhoenixIE(InfoExtractor
):
8 _VALID_URL
= r
'https?://(?:www\.)?phoenix\.de/content/(?P<id>[0-9]+)'
10 'url': 'http://www.phoenix.de/content/884301',
11 'md5': 'ed249f045256150c92e72dbb70eadec6',
15 'title': 'Michael Krons mit Hans-Werner Sinn',
16 'description': 'Im Dialog - Sa. 25.10.14, 00.00 - 00.35 Uhr',
17 'upload_date': '20141025',
18 'uploader': 'Im Dialog',
22 def _real_extract(self
, url
):
23 video_id
= self
._match
_id
(url
)
24 webpage
= self
._download
_webpage
(url
, video_id
)
26 internal_id
= self
._search
_regex
(
27 r
'<div class="phx_vod" id="phx_vod_([0-9]+)"',
28 webpage
, 'internal video ID')
30 api_url
= 'http://www.phoenix.de/php/zdfplayer-v1.3/data/beitragsDetails.php?ak=web&id=%s' % internal_id
31 return extract_from_xml_url(self
, video_id
, api_url
)