0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-26 02:55:17 +00:00
yt-dlp/yt_dlp/extractor/spiegeltv.py

16 lines
463 B
Python
Raw Normal View History

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