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

Revert "removing bad is_live code"

This reverts commit d224fceabca1a391abeadb37d6246428879f1ea1.
This commit is contained in:
Avichai Cohen 2019-04-28 17:43:20 +03:00
parent d224fceabc
commit ed78d69c06

View File

@ -94,6 +94,21 @@ class OdnoklassnikiIE(InfoExtractor):
'skip_download': True, 'skip_download': True,
}, },
'skip': 'Video has not been found', 'skip': 'Video has not been found',
},{
# live video
'url': 'https://www.ok.ru/video/1050794925929',
'info_dict': {
'id': '1050794925929',
'title': 're:^Поиск репертуара [0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}$',
'ext': 'mp4',
'upload_date': u'20190428',
'uploader': u'(((((КнЯзЬ ))))',
'uploader_id': u'557343776873',
'is_live': True
},
'params': {
'skip_download': True,
}
}, { }, {
'url': 'http://ok.ru/web-api/video/moviePlayer/20079905452', 'url': 'http://ok.ru/web-api/video/moviePlayer/20079905452',
'only_matching': True, 'only_matching': True,
@ -246,6 +261,7 @@ class OdnoklassnikiIE(InfoExtractor):
assert title assert title
if provider == 'LIVE_TV_APP': if provider == 'LIVE_TV_APP':
info['title'] = self._live_title(title) info['title'] = self._live_title(title)
info['is_live'] = True
quality = qualities(('4', '0', '1', '2', '3', '5')) quality = qualities(('4', '0', '1', '2', '3', '5'))