mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-08-15 17:08:29 +00:00
RUTVIE
This commit is contained in:
parent
5fd850ff4a
commit
ab51252fef
@ -1071,16 +1071,6 @@ class GenericIE(InfoExtractor):
|
|||||||
'title': 'Магаззино: Казань 2',
|
'title': 'Магаззино: Казань 2',
|
||||||
},
|
},
|
||||||
'skip': 'Invalid URL',
|
'skip': 'Invalid URL',
|
||||||
}, {
|
|
||||||
# 🔍91
|
|
||||||
# RUTVIE
|
|
||||||
'url': 'http://www.rg.ru/2014/03/15/reg-dfo/anklav-anons.html',
|
|
||||||
'info_dict': {
|
|
||||||
'id': '776940',
|
|
||||||
'ext': 'mp4',
|
|
||||||
'title': 'Охотское море стало целиком российским',
|
|
||||||
},
|
|
||||||
'skip': 'Invalid URL',
|
|
||||||
}, {
|
}, {
|
||||||
# ✅124
|
# ✅124
|
||||||
# YoutubeIE
|
# YoutubeIE
|
||||||
|
@ -21,91 +21,80 @@ class RUTVIE(InfoExtractor):
|
|||||||
r'<meta[^>]+?property=(["\'])og:video\1[^>]+?content=(["\'])(?P<url>https?://(?:test)?player\.(?:rutv\.ru|vgtrk\.com)/flash\d+v/container\.swf\?id=.+?\2)',
|
r'<meta[^>]+?property=(["\'])og:video\1[^>]+?content=(["\'])(?P<url>https?://(?:test)?player\.(?:rutv\.ru|vgtrk\.com)/flash\d+v/container\.swf\?id=.+?\2)',
|
||||||
]
|
]
|
||||||
|
|
||||||
_TESTS = [
|
_TESTS = [{
|
||||||
{
|
'url': 'http://player.rutv.ru/flash2v/container.swf?id=774471&sid=kultura&fbv=true&isPlay=true&ssl=false&i=560&acc_video_id=episode_id/972347/video_id/978186/brand_id/31724',
|
||||||
'url': 'http://player.rutv.ru/flash2v/container.swf?id=774471&sid=kultura&fbv=true&isPlay=true&ssl=false&i=560&acc_video_id=episode_id/972347/video_id/978186/brand_id/31724',
|
'info_dict': {
|
||||||
'info_dict': {
|
'id': '774471',
|
||||||
'id': '774471',
|
'ext': 'mp4',
|
||||||
'ext': 'mp4',
|
'title': 'Монологи на все времена. Концерт',
|
||||||
'title': 'Монологи на все времена',
|
'description': 'md5:18d8b5e6a41fb1faa53819471852d5d5',
|
||||||
'description': 'md5:18d8b5e6a41fb1faa53819471852d5d5',
|
'duration': 2906,
|
||||||
'duration': 2906,
|
'thumbnail': 'https://cdn-st2.smotrim.ru/vh/pictures/b/304/982/1.jpg',
|
||||||
},
|
|
||||||
'params': {
|
|
||||||
# m3u8 download
|
|
||||||
'skip_download': True,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
'params': {'skip_download': 'm3u8'},
|
||||||
'url': 'https://player.vgtrk.com/flash2v/container.swf?id=774016&sid=russiatv&fbv=true&isPlay=true&ssl=false&i=560&acc_video_id=episode_id/972098/video_id/977760/brand_id/57638',
|
}, {
|
||||||
'info_dict': {
|
'url': 'https://player.vgtrk.com/flash2v/container.swf?id=774016&sid=russiatv&fbv=true&isPlay=true&ssl=false&i=560&acc_video_id=episode_id/972098/video_id/977760/brand_id/57638',
|
||||||
'id': '774016',
|
'info_dict': {
|
||||||
'ext': 'mp4',
|
'id': '774016',
|
||||||
'title': 'Чужой в семье Сталина',
|
'ext': 'mp4',
|
||||||
'description': '',
|
'title': 'Чужой в семье Сталина',
|
||||||
'duration': 2539,
|
'description': '',
|
||||||
},
|
'duration': 2539,
|
||||||
'params': {
|
|
||||||
# m3u8 download
|
|
||||||
'skip_download': True,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
'skip': 'Invalid URL',
|
||||||
'url': 'http://player.rutv.ru/iframe/swf/id/766888/sid/hitech/?acc_video_id=4000',
|
}, {
|
||||||
'info_dict': {
|
'url': 'http://player.rutv.ru/iframe/swf/id/766888/sid/hitech/?acc_video_id=4000',
|
||||||
'id': '766888',
|
'info_dict': {
|
||||||
'ext': 'mp4',
|
'id': '766888',
|
||||||
'title': 'Вести.net: интернет-гиганты начали перетягивание программных "одеял"',
|
'ext': 'mp4',
|
||||||
'description': 'md5:65ddd47f9830c4f42ed6475f8730c995',
|
'title': 'Вести.net: интернет-гиганты начали перетягивание программных "одеял"',
|
||||||
'duration': 279,
|
'description': 'md5:65ddd47f9830c4f42ed6475f8730c995',
|
||||||
},
|
'duration': 279,
|
||||||
'params': {
|
'thumbnail': 'https://cdn-st2.smotrim.ru/vh/pictures/b/523/221.jpg',
|
||||||
# m3u8 download
|
|
||||||
'skip_download': True,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
'params': {'skip_download': 'm3u8'},
|
||||||
'url': 'http://player.rutv.ru/iframe/video/id/771852/start_zoom/true/showZoomBtn/false/sid/russiatv/?acc_video_id=episode_id/970443/video_id/975648/brand_id/5169',
|
}, {
|
||||||
'info_dict': {
|
'url': 'http://player.rutv.ru/iframe/video/id/771852/start_zoom/true/showZoomBtn/false/sid/russiatv/?acc_video_id=episode_id/970443/video_id/975648/brand_id/5169',
|
||||||
'id': '771852',
|
'info_dict': {
|
||||||
'ext': 'mp4',
|
'id': '771852',
|
||||||
'title': 'Прямой эфир. Жертвы загадочной болезни: смерть от старости в 17 лет',
|
'ext': 'mp4',
|
||||||
'description': 'md5:b81c8c55247a4bd996b43ce17395b2d8',
|
'title': 'Прямой эфир. Жертвы загадочной болезни: смерть от старости в 17 лет',
|
||||||
'duration': 3096,
|
'description': 'md5:b81c8c55247a4bd996b43ce17395b2d8',
|
||||||
},
|
'duration': 3096,
|
||||||
'params': {
|
'thumbnail': 'https://cdn-st2.smotrim.ru/vh/pictures/b/528/156.jpg',
|
||||||
# m3u8 download
|
|
||||||
'skip_download': True,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
'params': {'skip_download': 'm3u8'},
|
||||||
'url': 'http://player.rutv.ru/iframe/live/id/51499/showZoomBtn/false/isPlay/true/sid/sochi2014',
|
}, {
|
||||||
'info_dict': {
|
'url': 'http://player.rutv.ru/iframe/live/id/51499/showZoomBtn/false/isPlay/true/sid/sochi2014',
|
||||||
'id': '51499',
|
'info_dict': {
|
||||||
'ext': 'flv',
|
'id': '51499',
|
||||||
'title': 'Сочи-2014. Биатлон. Индивидуальная гонка. Мужчины ',
|
'ext': 'flv',
|
||||||
'description': 'md5:9e0ed5c9d2fa1efbfdfed90c9a6d179c',
|
'title': 'Сочи-2014. Биатлон. Индивидуальная гонка. Мужчины ',
|
||||||
},
|
'description': 'md5:9e0ed5c9d2fa1efbfdfed90c9a6d179c',
|
||||||
'skip': 'Translation has finished',
|
|
||||||
},
|
},
|
||||||
{
|
'skip': 'Invalid URL',
|
||||||
'url': 'http://player.rutv.ru/iframe/live/id/21/showZoomBtn/false/isPlay/true/',
|
}, {
|
||||||
'info_dict': {
|
'url': 'http://player.rutv.ru/iframe/live/id/21/showZoomBtn/false/isPlay/true/',
|
||||||
'id': '21',
|
'info_dict': {
|
||||||
'ext': 'mp4',
|
'id': '21',
|
||||||
'title': 're:^Россия 24. Прямой эфир [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
|
'ext': 'mp4',
|
||||||
'is_live': True,
|
'title': str,
|
||||||
},
|
'is_live': True,
|
||||||
'params': {
|
|
||||||
# m3u8 download
|
|
||||||
'skip_download': True,
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
{
|
'skip': 'Invalid URL',
|
||||||
'url': 'https://testplayer.vgtrk.com/iframe/live/id/19201/showZoomBtn/false/isPlay/true/',
|
}, {
|
||||||
'only_matching': True,
|
'url': 'https://testplayer.vgtrk.com/iframe/live/id/19201/showZoomBtn/false/isPlay/true/',
|
||||||
|
'only_matching': True,
|
||||||
|
}]
|
||||||
|
_WEBPAGE_TESTS = [{
|
||||||
|
'url': 'http://www.rg.ru/2014/03/15/reg-dfo/anklav-anons.html',
|
||||||
|
'info_dict': {
|
||||||
|
'id': '776940',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'Охотское море стало целиком российским',
|
||||||
},
|
},
|
||||||
]
|
'skip': 'Invalid URL',
|
||||||
|
}]
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
mobj = self._match_valid_url(url)
|
mobj = self._match_valid_url(url)
|
||||||
|
Loading…
Reference in New Issue
Block a user