4 from .common import InfoExtractor
10 class MySpaceIE(InfoExtractor):
11 _VALID_URL = r'https?://myspace\.com/([^/]+)/video/[^/]+/(?P<id>\d+)'
14 u'url': u'https://myspace.com/coldplay/video/viva-la-vida/100008689',
18 u'title': u'Viva La Vida',
19 u'description': u'The official Viva La Vida video, directed by Hype Williams',
20 u'uploader': u'Coldplay',
21 u'uploader_id': u'coldplay',
25 u'skip_download': True,
29 def _real_extract(self, url):
30 mobj = re.match(self._VALID_URL, url)
31 video_id = mobj.group('id')
32 webpage = self._download_webpage(url, video_id)
33 context = json.loads(self._search_regex(r'context = ({.*?});', webpage,
35 video = context['video']
36 rtmp_url, play_path = video['streamUrl'].split(';', 1)
39 'id': compat_str(video['mediaId']),
40 'title': video['title'],
42 'play_path': play_path,
44 'description': video['description'],
45 'thumbnail': video['imageUrl'],
46 'uploader': video['artistName'],
47 'uploader_id': video['artistUsername'],