1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-08-15 17:08:29 +00:00
This commit is contained in:
doe1080 2025-07-16 17:55:52 +09:00
parent bbb3d60f1b
commit 66556b4902
2 changed files with 14 additions and 15 deletions

View File

@ -1418,16 +1418,6 @@ class GenericIE(InfoExtractor):
'title': 'CNRV', 'title': 'CNRV',
}, },
'skip': 'Invalid URL', 'skip': 'Invalid URL',
}, {
# 🔍105
# TVCIE
'url': 'http://sch1298sz.mskobr.ru/dou_edu/karamel_ki/filial_galleries/video/iframe_src_http_tvc_ru_video_iframe_id_55304_isplay_false_acc_video_id_channel_brand_id_11_show_episodes_episode_id_32307_frameb/',
'info_dict': {
'id': '55304',
'ext': 'mp4',
'title': 'Дошкольное воспитание',
},
'skip': 'Invalid URL',
}, { }, {
# ✅124 # ✅124
# YoutubeIE # YoutubeIE

View File

@ -8,17 +8,26 @@
class TVCIE(InfoExtractor): class TVCIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?tvc\.ru/video/iframe/id/(?P<id>\d+)' _VALID_URL = r'https?://(?:www\.)?tvc\.ru/video/iframe/id/(?P<id>\d+)'
_EMBED_REGEX = [r'<iframe[^>]+?src=(["\'])(?P<url>(?:http:)?//(?:www\.)?tvc\.ru/video/iframe/id/[^"]+)\1'] _EMBED_REGEX = [r'<iframe[^>]+?src=(["\'])(?P<url>(?:http:)?//(?:www\.)?tvc\.ru/video/iframe/id/[^"]+)\1']
_TEST = { _TESTS = [{
'url': 'http://www.tvc.ru/video/iframe/id/74622/isPlay/false/id_stat/channel/?acc_video_id=/channel/brand/id/17/show/episodes/episode_id/39702', 'url': 'http://www.tvc.ru/video/iframe/id/74622/isPlay/false/id_stat/channel/?acc_video_id=/channel/brand/id/17/show/episodes/episode_id/39702',
'md5': 'bbc5ff531d1e90e856f60fc4b3afd708', 'md5': 'aa6fb3cf384e18a0ad3b30ee2898beba',
'info_dict': { 'info_dict': {
'id': '74622', 'id': '74622',
'ext': 'mp4', 'ext': 'mp4',
'title': 'События. "События". Эфир от 22.05.2015 14:30', 'title': 'TVC video #74622',
'thumbnail': r're:^https?://.*\.jpg$', 'thumbnail': r're:https?://.+\.jpg',
'duration': 1122, 'duration': 1122,
}, },
} }]
_WEBPAGE_TESTS = [{
'url': 'http://sch1298sz.mskobr.ru/dou_edu/karamel_ki/filial_galleries/video/iframe_src_http_tvc_ru_video_iframe_id_55304_isplay_false_acc_video_id_channel_brand_id_11_show_episodes_episode_id_32307_frameb/',
'info_dict': {
'id': '55304',
'ext': 'mp4',
'title': 'Дошкольное воспитание',
},
'skip': 'Invalid URL',
}]
def _real_extract(self, url): def _real_extract(self, url):
video_id = self._match_id(url) video_id = self._match_id(url)