1 from __future__ import unicode_literals
3 from .common import InfoExtractor
5 from ..compat import compat_urlparse
8 class TheSceneIE(InfoExtractor):
9 _VALID_URL = r'https?://thescene\.com/watch/[^/]+/(?P<id>[^/#?]+)'
12 'url': 'https://thescene.com/watch/vogue/narciso-rodriguez-spring-2013-ready-to-wear',
14 'id': '520e8faac2b4c00e3c6e5f43',
16 'title': 'Narciso Rodriguez: Spring 2013 Ready-to-Wear',
17 'display_id': 'narciso-rodriguez-spring-2013-ready-to-wear',
19 'series': 'Style.com Fashion Shows',
20 'season': 'Ready To Wear Spring 2013',
23 'upload_date': '20120913',
24 'timestamp': 1347512400,
29 def _real_extract(self, url):
30 display_id = self._match_id(url)
32 webpage = self._download_webpage(url, display_id)
34 player_url = compat_urlparse.urljoin(
36 self._html_search_regex(
37 r'id=\'js-player-script\'[^>]+src=\'(.+?)\'', webpage, 'player url'))
40 '_type': 'url_transparent',
41 'display_id': display_id,
43 'ie_key': 'CondeNast',