[ie/IPrima] Fix zoom URL support (#10959)

Closes #6100
Authored by: otovalek
This commit is contained in:
Oto Valek 2024-09-14 02:19:03 +02:00 committed by GitHub
parent 41a241ca6f
commit 4a27b8f092
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,9 +25,29 @@ class IPrimaIE(InfoExtractor):
'id': 'p51388', 'id': 'p51388',
'ext': 'mp4', 'ext': 'mp4',
'title': 'Partička (92)', 'title': 'Partička (92)',
'description': 'md5:859d53beae4609e6dd7796413f1b6cac', 'description': 'md5:57943f6a50d6188288c3a579d2fd5f01',
'upload_date': '20201103', 'episode': 'Partička (92)',
'timestamp': 1604437480, 'season': 'Partička',
'series': 'Prima Partička',
'episode_number': 92,
'thumbnail': 'https://d31b9s05ygj54s.cloudfront.net/prima-plus/image/video-ef6cf9de-c980-4443-92e4-17fe8bccd45c-16x9.jpeg',
},
'params': {
'skip_download': True, # m3u8 download
},
}, {
'url': 'https://zoom.iprima.cz/porady/krasy-kanarskych-ostrovu/tenerife-v-risi-ohne',
'info_dict': {
'id': 'p1412199',
'ext': 'mp4',
'episode_number': 3,
'episode': 'Tenerife: V říši ohně',
'description': 'md5:4b4a05c574b5eaef130e68d4811c3f2c',
'duration': 3111.0,
'thumbnail': 'https://d31b9s05ygj54s.cloudfront.net/prima-plus/image/video-f66dd7fb-c1a0-47d1-b3bc-7db328d566c5-16x9-1711636518.jpg/t_16x9_medium_1366_768',
'title': 'Tenerife: V říši ohně',
'timestamp': 1711825800,
'upload_date': '20240330',
}, },
'params': { 'params': {
'skip_download': True, # m3u8 download 'skip_download': True, # m3u8 download
@ -131,6 +151,7 @@ class IPrimaIE(InfoExtractor):
video_id = self._search_regex(( video_id = self._search_regex((
r'productId\s*=\s*([\'"])(?P<id>p\d+)\1', r'productId\s*=\s*([\'"])(?P<id>p\d+)\1',
r'pproduct_id\s*=\s*([\'"])(?P<id>p\d+)\1', r'pproduct_id\s*=\s*([\'"])(?P<id>p\d+)\1',
r'let\s+videos\s*=\s*([\'"])(?P<id>p\d+)\1',
), webpage, 'real id', group='id', default=None) ), webpage, 'real id', group='id', default=None)
if not video_id: if not video_id:
@ -176,7 +197,7 @@ class IPrimaIE(InfoExtractor):
final_result = self._search_json_ld(webpage, video_id, default={}) final_result = self._search_json_ld(webpage, video_id, default={})
final_result.update({ final_result.update({
'id': video_id, 'id': video_id,
'title': title, 'title': final_result.get('title') or title,
'thumbnail': self._html_search_meta( 'thumbnail': self._html_search_meta(
['thumbnail', 'og:image', 'twitter:image'], ['thumbnail', 'og:image', 'twitter:image'],
webpage, 'thumbnail', default=None), webpage, 'thumbnail', default=None),