2 from __future__ import unicode_literals
4 from .common import InfoExtractor
7 class ThisAmericanLifeIE(InfoExtractor):
8 _VALID_URL = r'https?://(?:www\.)?thisamericanlife\.org/radio-archives/episode/(?P<id>\d+)'
10 'url': 'http://www.thisamericanlife.org/radio-archives/episode/487/harper-high-school-part-one',
11 'md5': '5cda28076c9f9d1fd0b0f5cff5959948',
14 'title': '487: Harper High School, Part One',
15 'url' : 'http://stream.thisamericanlife.org/487/stream/487_64k.m3u8',
20 def _real_extract(self, url):
21 video_id = self._match_id(url)
22 webpage = self._download_webpage(url, video_id)
24 title = self._html_search_regex(r'<h1[^>]*>(.*?)</h1>', webpage, 'title')
25 media_url = 'http://stream.thisamericanlife.org/' + video_id + '/stream/' + video_id + '_64k.m3u8'