spiegeltv.py (504B)
1 from __future__ import unicode_literals 2 3 from .common import InfoExtractor 4 from .nexx import NexxIE 5 6 7 class SpiegeltvIE(InfoExtractor): 8 _VALID_URL = r'https?://(?:www\.)?spiegel\.tv/videos/(?P<id>\d+)' 9 _TEST = { 10 'url': 'http://www.spiegel.tv/videos/161681-flug-mh370/', 11 'only_matching': True, 12 } 13 14 def _real_extract(self, url): 15 return self.url_result( 16 'https://api.nexx.cloud/v3/748/videos/byid/%s' 17 % self._match_id(url), ie=NexxIE.ie_key())