logo

youtube-dl

[mirror] Download/Watch videos from video hosters

spiegeltv.py (504B)


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