2 from __future__ import unicode_literals
6 from .common import InfoExtractor
13 class NormalbootsIE(InfoExtractor):
14 _VALID_URL = r'http://(?:www\.)?normalboots\.com/video/(?P<id>[0-9a-z-]*)/?$'
16 'url': 'http://normalboots.com/video/home-alone-games-jontron/',
17 'md5': '8bf6de238915dd501105b44ef5f1e0f6',
19 'id': 'home-alone-games-jontron',
21 'title': 'Home Alone Games - JonTron - NormalBoots',
22 'description': 'Jon is late for Christmas. Typical. Thanks to: Paul Ritchey for Co-Writing/Filming: http://www.youtube.com/user/ContinueShow Michael Azzi for Christmas Intro Animation: http://michafrar.tumblr.com/ Jerrod Waters for Christmas Intro Music: http://www.youtube.com/user/xXJerryTerryXx Casey Ormond for ‘Tense Battle Theme’:\xa0http://www.youtube.com/Kiamet/',
23 'uploader': 'JonTron',
24 'upload_date': '20140125',
28 'skip_download': True,
32 def _real_extract(self, url):
33 video_id = self._match_id(url)
34 webpage = self._download_webpage(url, video_id)
36 video_uploader = self._html_search_regex(
37 r'Posted\sby\s<a\shref="[A-Za-z0-9/]*">(?P<uploader>[A-Za-z]*)\s</a>',
38 webpage, 'uploader', fatal=False)
39 video_upload_date = unified_strdate(self._html_search_regex(
40 r'<span style="text-transform:uppercase; font-size:inherit;">[A-Za-z]+, (?P<date>.*)</span>',
41 webpage, 'date', fatal=False))
43 player_url = self._html_search_regex(
44 r'<iframe\swidth="[0-9]+"\sheight="[0-9]+"\ssrc="(?P<url>[\S]+)"',
45 webpage, 'player url')
46 player_page = self._download_webpage(player_url, video_id)
47 video_url = self._html_search_regex(
48 r"file:\s'(?P<file>[^']+\.mp4)'", player_page, 'file')
53 'title': self._og_search_title(webpage),
54 'description': self._og_search_description(webpage),
55 'thumbnail': self._og_search_thumbnail(webpage),
56 'uploader': video_uploader,
57 'upload_date': video_upload_date,