2 from __future__ import unicode_literals
4 from .common import InfoExtractor
7 class StretchInternetIE(InfoExtractor):
8 IE_DESC = 'StretchInternet'
9 _VALID_URL = r'https?://.*?stretchinternet\.com/[^/_?].*(?<=eventId=)(?P<id>.*)(?=&).*'
11 'url': 'https://portal.stretchinternet.com/umary/portal.htm?eventId=313900&streamType=video',
15 'title': 'StretchInternet'
19 def _real_extract(self, url):
20 video_id = self._match_id(url)
21 stream = self._download_json('https://neo-client.stretchinternet.com/streamservice/v1/media/stream/v%s' % video_id, video_id)
22 stream_url = stream.get('source')
26 'url': 'http://%s' % stream_url,
27 'title': 'StretchInternet'