1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 23:27:17 +08:00

fixing OK live video detection

This commit is contained in:
Avichai Cohen 2019-06-13 17:36:45 +03:00
parent 4aa14afc55
commit 4b7016c23e

View File

@ -96,14 +96,14 @@ class OdnoklassnikiIE(InfoExtractor):
'skip': 'Video has not been found', 'skip': 'Video has not been found',
}, { }, {
# live video # live video
'url': 'https://www.ok.ru/video/1050794925929', 'url': 'https://www.ok.ru/live/1385317932687',
'info_dict': { 'info_dict': {
'id': '1050794925929', 'id': u'1385317932687',
'title': 're:^Поиск репертуара [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$', 'title': u're:АНДРЕЙ МАЛАХОВ. ПРЯМОЙ ЭФИР [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
'ext': 'mp4', 'ext': 'mp4',
'upload_date': u'20190428', 'upload_date': u'20190603',
'uploader': u'(((((КнЯзЬ ))))', 'uploader': u'Светлана Соколенко',
'uploader_id': u'557343776873', 'uploader_id': u'575511609483',
'is_live': True 'is_live': True
}, },
'params': { 'params': {
@ -259,7 +259,7 @@ class OdnoklassnikiIE(InfoExtractor):
return info return info
assert title assert title
if provider == 'LIVE_TV_APP': if 'LIVE_TV' in provider:
info['title'] = self._live_title(title) info['title'] = self._live_title(title)
info['is_live'] = True info['is_live'] = True