2014-05-31 00:35:17 +10:00
|
|
|
from __future__ import unicode_literals
|
|
|
|
|
|
|
|
from .common import InfoExtractor
|
2017-07-15 09:52:23 +10:00
|
|
|
from .nexx import NexxIE
|
2014-05-31 00:35:17 +10:00
|
|
|
|
2014-06-07 23:33:45 +10:00
|
|
|
|
2014-05-31 00:35:17 +10:00
|
|
|
class SpiegeltvIE(InfoExtractor):
|
2017-07-15 09:52:23 +10:00
|
|
|
_VALID_URL = r'https?://(?:www\.)?spiegel\.tv/videos/(?P<id>\d+)'
|
|
|
|
_TEST = {
|
|
|
|
'url': 'http://www.spiegel.tv/videos/161681-flug-mh370/',
|
2014-11-16 10:40:09 +11:00
|
|
|
'only_matching': True,
|
2017-07-15 09:52:23 +10:00
|
|
|
}
|
2014-05-31 00:35:17 +10:00
|
|
|
|
|
|
|
def _real_extract(self, url):
|
2017-07-15 09:52:23 +10:00
|
|
|
return self.url_result(
|
|
|
|
'https://api.nexx.cloud/v3/748/videos/byid/%s'
|
|
|
|
% self._match_id(url), ie=NexxIE.ie_key())
|