mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-10-12 13:28:30 +00:00
parent
d925e92b71
commit
603acdff07
@ -6,7 +6,7 @@ class CharlieRoseIE(InfoExtractor):
|
|||||||
_VALID_URL = r'https?://(?:www\.)?charlierose\.com/(?:video|episode)(?:s|/player)/(?P<id>\d+)'
|
_VALID_URL = r'https?://(?:www\.)?charlierose\.com/(?:video|episode)(?:s|/player)/(?P<id>\d+)'
|
||||||
_TESTS = [{
|
_TESTS = [{
|
||||||
'url': 'https://charlierose.com/videos/27996',
|
'url': 'https://charlierose.com/videos/27996',
|
||||||
'md5': 'fda41d49e67d4ce7c2411fd2c4702e09',
|
'md5': '4405b662f557f94aa256fa6a7baf7426',
|
||||||
'info_dict': {
|
'info_dict': {
|
||||||
'id': '27996',
|
'id': '27996',
|
||||||
'ext': 'mp4',
|
'ext': 'mp4',
|
||||||
@ -39,12 +39,16 @@ def _real_extract(self, url):
|
|||||||
self._PLAYER_BASE % video_id, webpage, video_id,
|
self._PLAYER_BASE % video_id, webpage, video_id,
|
||||||
m3u8_entry_protocol='m3u8_native')[0]
|
m3u8_entry_protocol='m3u8_native')[0]
|
||||||
self._remove_duplicate_formats(info_dict['formats'])
|
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({
|
info_dict.update({
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': title,
|
'title': title,
|
||||||
'thumbnail': self._og_search_thumbnail(webpage),
|
'thumbnail': self._og_search_thumbnail(webpage),
|
||||||
'description': self._og_search_description(webpage),
|
'description': self._og_search_description(webpage),
|
||||||
|
'_format_sort_fields': ('proto',),
|
||||||
})
|
})
|
||||||
|
|
||||||
return info_dict
|
return info_dict
|
||||||
|
Loading…
Reference in New Issue
Block a user