mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2025-12-09 08:15:10 +01:00
[yandexvideo] Fix YandexVideo extractor: allow empty title (yandex market review for example)
This commit is contained in:
parent
1f5cc4728e
commit
680268443d
1 changed files with 16 additions and 1 deletions
|
|
@ -39,6 +39,21 @@ class YandexVideoIE(InfoExtractor):
|
||||||
'dislike_count': int,
|
'dislike_count': int,
|
||||||
},
|
},
|
||||||
'params': {'skip_download': 'm3u8'},
|
'params': {'skip_download': 'm3u8'},
|
||||||
|
}, {
|
||||||
|
'url': 'https://frontend.vh.yandex.ru/player/vjHNY0YjZUQI',
|
||||||
|
'info_dict': {
|
||||||
|
'id': 'vjHNY0YjZUQI',
|
||||||
|
'ext': 'mp4',
|
||||||
|
'title': 'YandexVideo video #vjHNY0YjZUQI',
|
||||||
|
'thumbnail': r're:^https?://',
|
||||||
|
'timestamp': 1750165995,
|
||||||
|
'duration': 42,
|
||||||
|
'upload_date': '20250617',
|
||||||
|
'view_count': int,
|
||||||
|
'like_count': int,
|
||||||
|
'dislike_count': int,
|
||||||
|
},
|
||||||
|
'params': {'skip_download': 'm3u8'},
|
||||||
}, {
|
}, {
|
||||||
'url': 'https://yandex.ru/portal/efir?stream_id=4dbb262b4fe5cf15a215de4f34eee34d&from=morda',
|
'url': 'https://yandex.ru/portal/efir?stream_id=4dbb262b4fe5cf15a215de4f34eee34d&from=morda',
|
||||||
'only_matching': True,
|
'only_matching': True,
|
||||||
|
|
@ -99,7 +114,7 @@ class YandexVideoIE(InfoExtractor):
|
||||||
})
|
})
|
||||||
content = player['content']
|
content = player['content']
|
||||||
|
|
||||||
title = content.get('title') or content['computed_title']
|
title = content.get('title') or content.get('computed_title') or ''
|
||||||
|
|
||||||
formats = []
|
formats = []
|
||||||
streams = content.get('streams') or []
|
streams = content.get('streams') or []
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue