2 from __future__ import unicode_literals
4 from .common import InfoExtractor
5 from ..utils import remove_end
8 class TelegraafIE(InfoExtractor):
9 _VALID_URL = r'https?://(?:www\.)?telegraaf\.nl/tv/(?:[^/]+/)+(?P<id>\d+)/[^/]+\.html'
11 'url': 'http://www.telegraaf.nl/tv/nieuws/binnenland/24353229/__Tikibad_ontruimd_wegens_brand__.html',
12 'md5': '83245a9779bcc4a24454bfd53c65b6dc',
16 'title': 'Tikibad ontruimd wegens brand',
17 'description': 'md5:05ca046ff47b931f9b04855015e163a4',
18 'thumbnail': 're:^https?://.*\.jpg$',
23 def _real_extract(self, url):
24 playlist_id = self._match_id(url)
26 webpage = self._download_webpage(url, playlist_id)
28 playlist_url = self._search_regex(
29 r"iframe\.loadPlayer\('([^']+)'", webpage, 'player')
31 entries = self._extract_xspf_playlist(playlist_url, playlist_id)
32 title = remove_end(self._og_search_title(webpage), ' - VIDEO')
33 description = self._og_search_description(webpage)
35 return self.playlist_result(entries, playlist_id, title, description)