|
|
|
@ -6,7 +6,7 @@ class CharlieRoseIE(InfoExtractor):
|
|
|
|
|
_VALID_URL = r'https?://(?:www\.)?charlierose\.com/(?:video|episode)(?:s|/player)/(?P<id>\d+)'
|
|
|
|
|
_TESTS = [{
|
|
|
|
|
'url': 'https://charlierose.com/videos/27996',
|
|
|
|
|
'md5': 'fda41d49e67d4ce7c2411fd2c4702e09',
|
|
|
|
|
'md5': '4405b662f557f94aa256fa6a7baf7426',
|
|
|
|
|
'info_dict': {
|
|
|
|
|
'id': '27996',
|
|
|
|
|
'ext': 'mp4',
|
|
|
|
@ -39,12 +39,16 @@ class CharlieRoseIE(InfoExtractor):
|
|
|
|
|
self._PLAYER_BASE % video_id, webpage, video_id,
|
|
|
|
|
m3u8_entry_protocol='m3u8_native')[0]
|
|
|
|
|
self._remove_duplicate_formats(info_dict['formats'])
|
|
|
|
|
for fmt in info_dict['formats']:
|
|
|
|
|
if fmt.get('protocol') == 'm3u8_native':
|
|
|
|
|
fmt['__needs_testing'] = True
|
|
|
|
|
|
|
|
|
|
info_dict.update({
|
|
|
|
|
'id': video_id,
|
|
|
|
|
'title': title,
|
|
|
|
|
'thumbnail': self._og_search_thumbnail(webpage),
|
|
|
|
|
'description': self._og_search_description(webpage),
|
|
|
|
|
'_format_sort_fields': ('proto',),
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
return info_dict
|
|
|
|
|